mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: dont check password strength on login
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function (User) {
|
|||||||
hashedPassword = '';
|
hashedPassword = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
User.isPasswordValid(password);
|
User.isPasswordValid(password, 0);
|
||||||
await User.auth.logAttempt(uid, ip);
|
await User.auth.logAttempt(uid, ip);
|
||||||
const ok = await Password.compare(password, hashedPassword);
|
const ok = await Password.compare(password, hashedPassword);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user