summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authormark <mark>2009-12-23 00:30:14 +0000
committermark <mark>2009-12-23 00:30:14 +0000
commitef2b25a7063f9e5f644cca7014c59890f5a1e918 (patch)
treef6f3b8116198fa6320238bf8d147b8573aee3388 /httemplate/edit
parent5b87686b7a7f09e766bb1749628365b81f4f72fc (diff)
Tweak set_password per RT#6358
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/process/svc_acct.cgi4
-rwxr-xr-xhttemplate/edit/svc_acct.cgi4
2 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi
index c19c2a51f..515d89e91 100755
--- a/httemplate/edit/process/svc_acct.cgi
+++ b/httemplate/edit/process/svc_acct.cgi
@@ -11,6 +11,7 @@ die "access denied"
$cgi->param('svcnum') =~ /^(\d*)$/ or die "Illegal svcnum!";
my $svcnum = $1;
+my $error;
my $old;
if ( $svcnum ) {
@@ -45,10 +46,9 @@ if( $cgi->param('clear_password') eq '*HIDDEN*'
die "fatal: no previous account to recall hidden password from!" unless $old;
}
else {
- $new->set_password($cgi->param('clear_password'));
+ $error = $new->set_password($cgi->param('clear_password'));
}
-my $error;
if ( $svcnum ) {
foreach (grep { $old->$_ != $new->$_ } qw( seconds upbytes downbytes totalbytes )) {
my %hash = map { $_ => $new->$_ }
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index 9c3e8de03..afbd002c1 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -12,7 +12,7 @@
<SCRIPT TYPE="text/javascript">
function randomPass() {
var i=0;
- var pw_set='<% join('', 'a'..'z', 'A'..'Z', '0'..'9', '.', '/') %>';
+ var pw_set='<% join('', 'a'..'z', 'A'..'Z', '0'..'9' ) %>';
var pass='';
while(i < 8) {
i++;
@@ -48,7 +48,7 @@ Service # <% $svcnum ? "<B>$svcnum</B>" : " (NEW)" %><BR>
<TD ALIGN="right">Password</TD>
<TD>
<INPUT TYPE="text" NAME="clear_password" VALUE="<% $password %>" SIZE=<% $pmax2 %> MAXLENGTH=<% $pmax %>>
- <INPUT TYPE="button" VALUE="Randomize" onclick="randomPass();">
+ <INPUT TYPE="button" VALUE="Generate" onclick="randomPass();">
</TD>
</TR>
%}else{