Admin: bei Admin/login direkt Redirect zu show, falls bereits eingeloggt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 17 Jun 2013 09:03:23 +0000 (11:03 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 17 Jun 2013 09:03:23 +0000 (11:03 +0200)
SL/Controller/Admin.pm

index 5555baa..e1d26fd 100644 (file)
@@ -37,6 +37,7 @@ sub keep_auth_vars {
 sub action_login {
   my ($self) = @_;
 
+  return $self->redirect_to(action => 'show') if $::auth->authenticate_root == SL::Auth::OK();
   return $self->login_form if !$::form->{do_login};
   return                   if !$self->authenticate_root;
   return                   if !$self->check_auth_db_and_tables;