]> wagnertech.de Git - timetracker.git/blobdiff - login.php
Fixed a redirect for different user roles after password change.
[timetracker.git] / login.php
index 19b88eacc437003aac91c631e2192d153b0ea948..7f55853aec94360ecd2a2f72e8d5d079b007ac91 100644 (file)
--- a/login.php
+++ b/login.php
@@ -65,16 +65,14 @@ 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'));
   }