From 9133b2d0676dc5c0d9b00679d80ba5594bc3c168 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 16 Jun 2011 10:31:25 +0200 Subject: [PATCH] Admin-Passwort immer gehasht speichern, auch wenn LDAP-Authentifizierung aktiv ist --- SL/Auth.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 { -- 2.20.1