Added condition when login invalid
This commit is contained in:
@@ -14,7 +14,7 @@ class Access extends \Core\Model
|
||||
'salt char(23) NOT NULL',
|
||||
'name varchar(50) NOT NULL',
|
||||
'registered_at date NOT NULL DEFAULT CURRENT_TIMESTAMP',
|
||||
'status tinyint NOT NULL DEFAULT 1',
|
||||
'status tinyint NOT NULL DEFAULT 0',
|
||||
'PRIMARY KEY (id)'
|
||||
]
|
||||
);
|
||||
@@ -94,6 +94,7 @@ class Access extends \Core\Model
|
||||
}
|
||||
}
|
||||
}
|
||||
\Core\Session::flash('info', 'Invalid username/password');
|
||||
return false;
|
||||
} catch (PDOException $e) {
|
||||
echo $e->getMessage();
|
||||
|
||||
Reference in New Issue
Block a user