OSSP CVS Repository

ossp - Check-in [2186]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2186
Date: 2002-Jun-14 16:53:08 (local)
2002-Jun-14 14:53:08 (UTC)
User:ps
Branch:
Comment: Corrected wrong password checking
Tickets:
Inspections:
Files:
ossp-pkg/tabea/tabea.cgi      1.27 -> 1.28     4 inserted, 1 deleted

ossp-pkg/tabea/tabea.cgi 1.27 -> 1.28

--- tabea.cgi    2002/06/14 13:42:32     1.27
+++ tabea.cgi    2002/06/14 14:53:08     1.28
@@ -850,7 +850,9 @@
 
 
     $valid = &validpassword($user, $old_password, $cfghash{'BaseDir'}.$cfghash{'PasswdFile'});
-    if ( $user !~ $cfghash{'TabeaUser'}) { $valid = 1; }    
+    if ( $username =~ $cfghash{'TabeaUser'}) {
+        if ( $user !~ $cfghash{'TabeaUser'}) { $valid = 0; }    
+    }
     if ( !$valid ) {
         $cptext .= "<font color=red>The password is incorrect.<br><br>\n". 
           $cgi->submit(-name => 'dialog_mainw', -value => 'Back');
@@ -878,6 +880,7 @@
             $cgi->submit(-name => 'dialog_mainw', -value => 'Back');
         } 
     }
+    ENDE:
 
     return $cptext;
 }

CVSTrac 2.0.1