diff --git a/back/models/vn-user.js b/back/models/vn-user.js index b9b20efe5..29c51509d 100644 --- a/back/models/vn-user.js +++ b/back/models/vn-user.js @@ -139,7 +139,7 @@ module.exports = function(Self) { } }; - Self.validateLogin = async function(user, password, ctx = null) { + Self.validateLogin = async function(user, password, ctx) { const loginInfo = Object.assign({password}, Self.userUses(user)); const token = await Self.login(loginInfo, 'user');