allow people with short passwords to log in

pull/1/head
ansuz 7 years ago
parent 0ed6846e07
commit 520b8967fd

@ -88,7 +88,9 @@ define([
// validate inputs
if (!Cred.isValidUsername(uname)) { return void cb('INVAL_USER'); }
if (!Cred.isValidPassword(passwd)) { return void cb('INVAL_PASS'); }
if (!Cred.isLongEnoughPassword(passwd)) { return void cb('PASS_TOO_SHORT'); }
if (isRegister && !Cred.isLongEnoughPassword(passwd)) {
return void cb('PASS_TOO_SHORT'); }
}
Cred.deriveFromPassphrase(uname, passwd, 128, function (bytes) {
// results...

Loading…
Cancel
Save