From 10a2aa2d8cec3163b6d39208fd9c30a9db7d3bd9 Mon Sep 17 00:00:00 2001 From: christopherm Date: Mon, 13 Nov 2006 05:53:45 +0000 Subject: fixing double md5()ing of passwords. User::save_member now assumes that a 32 char password that matches the old md5 password means do not change git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@554 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/admin.pl | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'bin') diff --git a/bin/admin.pl b/bin/admin.pl index e2abd142..872ed72c 100755 --- a/bin/admin.pl +++ b/bin/admin.pl @@ -446,7 +446,6 @@ sub form_header { |.$locale->text('Password').qq| - |.$locale->text('Name').qq| @@ -765,8 +764,7 @@ sub save { $myconfig->{$item} = $form->{$item}; } - $myconfig->{password} = $form->{old_password}; - $myconfig->{password} = $form->{new_password} if $form->{new_password} ne $form->{old_password}; + $myconfig->{password} = $form->{new_password}; $myconfig->{timeout} = $form->{newtimeout}; delete $myconfig->{stylesheet}; @@ -1013,18 +1011,19 @@ sub dbselect_source { |.$locale->text('User').qq| -|.$locale->text('Password').qq| - + |.$locale->text('Password').qq| + $form->{connectstring} -|.$locale->text("Superuser").qq| - -|.$locale->text('Password').qq| - - + + |.$locale->text("Superuser").qq| + + |.$locale->text('Password').qq| + + -- cgit v1.2.3