Added register, login, logout pages

Added roles file
This commit is contained in:
Furentes
2019-05-09 13:59:54 +02:00
parent 36826f48a8
commit 135b0bb9c2
8 changed files with 186 additions and 5 deletions

View File

@ -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);