Kommentar zur Namensgebung der PDF-Dateien
[kivitendo-erp.git] / SL / Auth / DB.pm
index 520e3e2..ab8788a 100644 (file)
@@ -25,6 +25,10 @@ sub new {
   return $self;
 }
 
+sub reset {
+  # nothing to do here
+}
+
 sub authenticate {
   $main::lxdebug->enter_sub();
 
@@ -70,7 +74,7 @@ sub change_password {
     return ERR_BACKEND;
   }
 
-  $password = SL::Auth::Password->hash(password => $password) unless $is_crypted;
+  $password = SL::Auth::Password->hash(login => $login, password => $password) unless $is_crypted;
 
   do_query($main::form, $dbh, qq|UPDATE auth."user" SET password = ? WHERE login = ?|, $password, $login);