projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renaming in progress.
[timetracker.git]
/
mobile
/
login.php
diff --git
a/mobile/login.php
b/mobile/login.php
index
7e5d871
..
a0747de
100644
(file)
--- a/
mobile/login.php
+++ b/
mobile/login.php
@@
-69,20
+69,16
@@
if ($request->isPost()) {
// Redirect, depending on user role.
if ($user->isAdmin()) {
header('Location: ../admin_teams.php');
// Redirect, depending on user role.
if ($user->isAdmin()) {
header('Location: ../admin_teams.php');
- exit();
- }
- else if ($user->isClient()) {
+ } elseif ($user->isClient()) {
header('Location: ../reports.php');
header('Location: ../reports.php');
- exit();
- }
- else {
+ } else {
header('Location: time.php');
header('Location: time.php');
- exit();
}
}
+ exit();
} else
$err->add($i18n->getKey('error.auth'));
}
} else
$err->add($i18n->getKey('error.auth'));
}
-} //
POST
+} //
isPost
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));
if(!isTrue(MULTITEAM_MODE) && !ttTeamHelper::getTeams())
$err->add($i18n->getKey('error.no_teams'));