From 085516df97471506ac68d1fdd015ea6a33bb38bd Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 23 Dec 2009 00:30:26 +0000 Subject: Tweak set_password per RT#6358 --- httemplate/view/svc_acct.cgi | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 6a47ec767..44a2aa611 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -160,14 +160,19 @@ Service #<% $svcnum %> Password -% my $password = $svc_acct->_password; +% my $password = $svc_acct->get_cleartext_password; % if ( $password =~ /^\*\w+\* (.*)$/ ) { % $password = $1; % (login disabled) % } -% if ( $conf->exists('showpasswords') ) { +% if ( !$password and +% $svc_acct->_password_encryption ne 'plain' and +% $svc_acct->_password ) { + (<% uc($svc_acct->_password_encryption) %> encrypted) +% } +% elsif ( $conf->exists('showpasswords') ) {
<% encode_entities($password) %>
% } else { -- cgit v1.2.1