station account are redirect to their station table after login
This commit is contained in:
@@ -14,7 +14,11 @@
|
||||
if($user_data['password'] === $phash) {
|
||||
$_SESSION['user_id'] = $user_data['user_id'];
|
||||
$_SESSION['user_group'] = $user_data['user_group'];
|
||||
header("Location: index.php");
|
||||
if ($_SESSION['user_group'] != 'station') {
|
||||
header("Location: index.php");
|
||||
} else {
|
||||
header("Location: statistik.php");
|
||||
}
|
||||
die;
|
||||
} else {
|
||||
echo "Benutzername oder Passwort stimmen nicht";
|
||||
|
||||
Reference in New Issue
Block a user