refs #6434 perf: remove default value param
This commit is contained in:
parent
d71e7a4b41
commit
cbcc2ba17c
|
@ -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 loginInfo = Object.assign({password}, Self.userUses(user));
|
||||||
const token = await Self.login(loginInfo, 'user');
|
const token = await Self.login(loginInfo, 'user');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue