X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/9e82b53fc5d8cb1e54b5fde774fa68a916f28b4c..e14559f16ec474f993208fde7c9065c2aa3d385a:/login.php diff --git a/login.php b/login.php index 886800c3..7f55853a 100644 --- a/login.php +++ b/login.php @@ -65,20 +65,18 @@ if ($request->isPost()) { // Redirect, depending on user role. if ($user->isAdmin()) { header('Location: admin_teams.php'); - exit(); } else if ($user->isClient()) { header('Location: reports.php'); - exit(); } else { header('Location: time.php'); - exit(); } + exit(); } else $err->add($i18n->getKey('error.auth')); } -} // POST +} // isPost if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams()) $err->add($i18n->getKey('error.no_teams'));