refs #6434 perf: remove default value param

This commit is contained in:
Javier Segarra 2023-11-24 12:44:36 +01:00
parent d71e7a4b41
commit cbcc2ba17c
1 changed files with 1 additions and 1 deletions

View File

@ -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');