Passwort-Ă„nderungen auch in der Session speichern
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 21 Jun 2011 06:51:59 +0000 (08:51 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 21 Jun 2011 06:51:59 +0000 (08:51 +0200)
SL/Auth.pm

index e01af91..365ee23 100644 (file)
@@ -393,8 +393,14 @@ sub can_change_password {
 sub change_password {
   $main::lxdebug->enter_sub();
 
-  my $self   = shift;
-  my $result = $self->{authenticator}->change_password(@_);
+  my ($self, $login, $new_password) = @_;
+
+  my $result = $self->{authenticator}->change_password($login, $new_password);
+
+  $self->store_credentials_in_session(login             => $login,
+                                      password          => $new_password,
+                                      look_up_algorithm => 1,
+                                      auth              => $self);
 
   $main::lxdebug->leave_sub();