Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix into 6434-signInLog_issue_MASTER

This commit is contained in:
Javier Segarra 2023-11-16 10:08:06 +01:00
commit 579cd832c0
1 changed files with 4 additions and 4 deletions

View File

@ -131,10 +131,10 @@ module.exports = function(Self) {
const userToken = await token.user.get();
if (userToken.username.toLowerCase() !== user.toLowerCase()) {
console.error('ERROR!!! - Signin with other user', userToken, user);
throw new UserError('Try again');
}
// if (userToken.username.toLowerCase() !== user.toLowerCase()) {
// console.error('ERROR!!! - Signin with other user', userToken, user);
// throw new UserError('Try again');
// }
try {
await Self.app.models.Account.sync(userToken.name, password);