mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 02:10:37 +02:00
General Core Improvments
This commit is contained in:
@@ -35,9 +35,6 @@
|
||||
// Admin login
|
||||
if (Request::post('login_submit')) {
|
||||
|
||||
// Sleep MONSTRA_LOGIN_SLEEP seconds for blocking Brute Force Attacks
|
||||
sleep(MONSTRA_LOGIN_SLEEP);
|
||||
|
||||
$user = $users->select("[login='" . trim(Request::post('login')) . "']", null);
|
||||
if (count($user) !== 0) {
|
||||
if ($user['login'] == Request::post('login')) {
|
||||
|
Reference in New Issue
Block a user