login attempts
This commit is contained in:
@@ -176,7 +176,7 @@ User.prototype.comparePassword = async function (password) {
|
||||
};
|
||||
|
||||
// Account lockout constants
|
||||
const MAX_LOGIN_ATTEMPTS = 5;
|
||||
const MAX_LOGIN_ATTEMPTS = 10;
|
||||
const LOCK_TIME = 2 * 60 * 60 * 1000; // 2 hours
|
||||
|
||||
// Check if account is locked
|
||||
|
||||
Reference in New Issue
Block a user