v0.1.5 Add the first support for create user account

This commit is contained in:
Victor
2021-06-09 11:13:12 +02:00
parent d0e2900941
commit b0fd4d4320
5 changed files with 17 additions and 13 deletions
+3
View File
@@ -18,6 +18,9 @@ if (isset($_POST['loginsubmit'])) {
if ($password->save()) {
$_SESSION['token'] = $token;
$_SESSION['name'] = $username;
if($user->permission === 1){
$_SESSION['permission'] = $token;
}
header('location: ../../Frontend/admin.php?login=success');
exit();
http_response_code(200);