mirror of
https://github.com/p08dev/Bloggr.git
synced 2026-06-17 04:33:56 +02:00
Added register, login, logout pages
Added roles file
This commit is contained in:
@ -71,7 +71,7 @@ if (isset($_POST['check'])) {
|
||||
if(count($error) <= 0) {
|
||||
$auth = new \Bloggr\Auth($pdo);
|
||||
|
||||
$register = $auth->register($user, $email, $pass, 1);
|
||||
$register = $auth->register($user, $email, $pass, \Bloggr\Roles::ADMIN);
|
||||
if (is_array($register)) {
|
||||
foreach($register as $regErr) {
|
||||
array_push($error, $regErr);
|
||||
|
||||
Reference in New Issue
Block a user