From: Moritz Bunkus Date: Thu, 16 Jun 2011 08:31:25 +0000 (+0200) Subject: Admin-Passwort immer gehasht speichern, auch wenn LDAP-Authentifizierung aktiv ist X-Git-Tag: release-2.7.0beta1~393 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9133b2d0676dc5c0d9b00679d80ba5594bc3c168;hp=1c385c602908735c3be266b1470b301050650fd3;p=kivitendo-erp.git Admin-Passwort immer gehasht speichern, auch wenn LDAP-Authentifizierung aktiv ist --- diff --git a/SL/Auth.pm b/SL/Auth.pm index 5f3c65dd8..415898061 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -174,10 +174,7 @@ sub store_credentials_in_session { sub store_root_credentials_in_session { my ($self, $rpw) = @_; - $rpw = SL::Auth::Password->hash_if_unhashed(login => 'root', password => $rpw) - unless $self->{authenticator}->requires_cleartext_password; - - $self->set_session_value(rpw => $rpw); + $self->set_session_value(rpw => SL::Auth::Password->hash_if_unhashed(login => 'root', password => $rpw)); } sub dbconnect {