From a3ae31cd5221738f7d0cc6bc2f4df316e7b83daa Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 17 Jun 2013 11:03:23 +0200 Subject: [PATCH] Admin: bei Admin/login direkt Redirect zu show, falls bereits eingeloggt --- SL/Controller/Admin.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Controller/Admin.pm b/SL/Controller/Admin.pm index 5555baa20..e1d26fd8c 100644 --- a/SL/Controller/Admin.pm +++ b/SL/Controller/Admin.pm @@ -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; -- 2.20.1