OSSP CVS Repository

ossp - Difference in ossp-pkg/tabea/tabea.cgi versions 1.27 and 1.28
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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