mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
The start of client logins has begun, now can link a user with a client to allow client logins, clients can only view client.php there is more work to be done
This commit is contained in:
10
login.php
10
login.php
@@ -16,8 +16,14 @@ if(isset($_POST['login'])){
|
||||
$_SESSION['logged'] = TRUE;
|
||||
$_SESSION['user_id'] = $row['user_id'];
|
||||
$_SESSION['name'] = $row['name'];
|
||||
|
||||
header("Location: $config_start_page");
|
||||
$_SESSION['client_id'] = $row['client_id'];
|
||||
$client_id = $row['client_id'];
|
||||
|
||||
if($client_id > 0){
|
||||
header("Location: client.php?client_id=$client_id");
|
||||
}else{
|
||||
header("Location: $config_start_page");
|
||||
}
|
||||
}else{
|
||||
$response = "
|
||||
<div class='alert alert-danger'>
|
||||
|
||||
Reference in New Issue
Block a user