refs #6434 fix: bad merge
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2023-12-13 12:01:18 +01:00
parent 5b3645a641
commit 5f93b8c440
1 changed files with 3 additions and 3 deletions

View File

@ -152,9 +152,9 @@ module.exports = function(Self) {
* @param {String} password
* @param {Object} ctx context
*/
Self.validateLogin = async function(user, password) {
let loginInfo = Object.assign({password}, Self.userUses(user));
token = await Self.login(loginInfo, 'user');
Self.validateLogin = async function(user, password, ctx) {
const loginInfo = Object.assign({password}, Self.userUses(user));
const token = await Self.login(loginInfo, 'user');
const userToken = await token.user.get();