more strict user validation & registration

This commit is contained in:
Tony Yang
2019-05-30 21:51:07 +08:00
parent d97af84b3f
commit a0a77d6748
4 changed files with 66 additions and 41 deletions

View File

@@ -12,7 +12,7 @@ require_once('notification.php');
$user = validate_user();
if (!$user->valid) {
http_response_code(403);
header("Location: ../index.php?err=account");
header("Location: index.php?err=account");
exit;
}