This commit is contained in:
parent
83ae0379b5
commit
aea3f7b2b9
|
@ -126,7 +126,7 @@ module.exports = function(Self) {
|
|||
});
|
||||
Self.signInValidate = (user, userToken) => {
|
||||
const [[key, value]] = Object.entries(Self.userUses(user));
|
||||
if (userToken[key].toLowerCase() !== value.toLowerCase()) {
|
||||
if (userToken[key].toLowerCase().trim() !== value.toLowerCase().trim()) {
|
||||
console.error('ERROR!!! - Signin with other user', userToken, user);
|
||||
throw new UserError('Try again');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue