From: Moritz Bunkus Date: Mon, 17 Jun 2013 09:03:23 +0000 (+0200) Subject: Admin: bei Admin/login direkt Redirect zu show, falls bereits eingeloggt X-Git-Tag: release-3.1.0beta1~316 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a3ae31cd5221738f7d0cc6bc2f4df316e7b83daa;p=kivitendo-erp.git Admin: bei Admin/login direkt Redirect zu show, falls bereits eingeloggt --- 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;