Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix into 6434-signInLog_issue_MASTER
This commit is contained in:
commit
579cd832c0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue