free-be-account 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -977,8 +977,8 @@ module.exports = (app) => ({
|
|
|
977
977
|
|
|
978
978
|
const pwdVerified = verifyPassword(password, user.Password, m.config.pwdEncryptMethod || 'md5');
|
|
979
979
|
|
|
980
|
-
return Promise.resolve(app.modules['
|
|
981
|
-
if (!pwdVerified && !
|
|
980
|
+
return Promise.resolve(app.modules['account'].sms.verify(username, password)).then((smsVerified) => {
|
|
981
|
+
if (!pwdVerified && !smsVerified) {
|
|
982
982
|
return done(null, false);
|
|
983
983
|
} else {
|
|
984
984
|
return done(null, user);
|