[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2843] branches/1.2/bin/am.pl



Revision: 2843
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2843&view=rev
Author:   einhverfr
Date:     2010-01-23 01:54:35 +0000 (Sat, 23 Jan 2010)

Log Message:
-----------
Correcting some issues with password change workflow

Modified Paths:
--------------
    branches/1.2/bin/am.pl

Modified: branches/1.2/bin/am.pl
===================================================================
--- branches/1.2/bin/am.pl	2010-01-22 21:46:22 UTC (rev 2842)
+++ branches/1.2/bin/am.pl	2010-01-23 01:54:35 UTC (rev 2843)
@@ -2291,7 +2291,6 @@
 
 <form method=post action=$form->{script}>
 
-<input type=hidden name=old_password value="$myconfig{password}">
 <input type=hidden name=type value=preferences>
 <input type=hidden name=role value="$myconfig{role}">
 
@@ -2434,7 +2433,7 @@
 
     $form->{stylesheet} = $form->{usestylesheet};
 
-    if ( $form->{new_password} ne $form->{old_password} ) {
+    if ( defined $form->{confirm_password} and $form->{confirm_password} ne '') {
         $form->error( $locale->text('Password does not match!') )
           if $form->{new_password} ne $form->{confirm_password};
     }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.