X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAuth%2FDB.pm;fp=SL%2FAuth%2FDB.pm;h=66d23cd278646742bf88dda89b87ee1f6896b7f7;hb=d0c2cfbef2bfa708dad6df15c76daa81d4fda3ab;hp=e70112be1d3e557236ca6a7e5a8359014ce5100c;hpb=58fdd50dbb6b909d48b2846f36857b2bd2219441;p=kivitendo-erp.git diff --git a/SL/Auth/DB.pm b/SL/Auth/DB.pm index e70112be1..66d23cd27 100644 --- a/SL/Auth/DB.pm +++ b/SL/Auth/DB.pm @@ -48,7 +48,7 @@ sub authenticate { # passwords. Hash it for easier comparison. $stored_password = SL::Auth::Password->hash(password => $stored_password) unless $stored_password; ($algorithm, $stored_password) = SL::Auth::Password->parse($stored_password); - ($algorithm2, $password) = SL::Auth::Password->parse(SL::Auth::Password->hash(password => $password, algorithm => $algorithm, login => $login)); + ($algorithm2, $password) = SL::Auth::Password->parse(SL::Auth::Password->hash_if_unhashed(password => $password, algorithm => $algorithm, login => $login)); $main::lxdebug->leave_sub(); @@ -59,6 +59,10 @@ sub can_change_password { return 1; } +sub requires_cleartext_password { + return 0; +} + sub change_password { $main::lxdebug->enter_sub();