revert merge from dev

This commit is contained in:
Javier Segarra 2023-11-28 12:14:39 +01:00
parent 97cb92716c
commit 21092cc9ee
1 changed files with 6 additions and 0 deletions

View File

@ -147,6 +147,12 @@ module.exports = function(Self) {
}
};
/**
* Validate login params*
* @param {String} user The user
* @param {String} password
* @param {Object} ctx context
*/
Self.validateLogin = async function(user, password, ctx) {
const loginInfo = Object.assign({password}, Self.userUses(user));
const token = await Self.login(loginInfo, 'user');