Revision d0c2cfbe
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
SL/Auth/DB.pm | ||
---|---|---|
48 | 48 |
# passwords. Hash it for easier comparison. |
49 | 49 |
$stored_password = SL::Auth::Password->hash(password => $stored_password) unless $stored_password; |
50 | 50 |
($algorithm, $stored_password) = SL::Auth::Password->parse($stored_password); |
51 |
($algorithm2, $password) = SL::Auth::Password->parse(SL::Auth::Password->hash(password => $password, algorithm => $algorithm, login => $login)); |
|
51 |
($algorithm2, $password) = SL::Auth::Password->parse(SL::Auth::Password->hash_if_unhashed(password => $password, algorithm => $algorithm, login => $login));
|
|
52 | 52 |
|
53 | 53 |
$main::lxdebug->leave_sub(); |
54 | 54 |
|
... | ... | |
59 | 59 |
return 1; |
60 | 60 |
} |
61 | 61 |
|
62 |
sub requires_cleartext_password { |
|
63 |
return 0; |
|
64 |
} |
|
65 |
|
|
62 | 66 |
sub change_password { |
63 | 67 |
$main::lxdebug->enter_sub(); |
64 | 68 |
|
Auch abrufbar als: Unified diff
Das Benutzer-Passwort nicht im Klartext in Session-Tabelle ablegen