projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some refactoring in translation files.
[timetracker.git]
/
login.php
diff --git
a/login.php
b/login.php
index
886800c
..
d578ae9
100644
(file)
--- a/
login.php
+++ b/
login.php
@@
-65,20
+65,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'));