refs #6434 feat: username.toLowerCase()

This commit is contained in:
Javier Segarra 2023-11-16 08:30:27 +01:00
parent c6b5d7f5a4
commit 3c8ed3ff51
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ module.exports = function(Self) {
const userToken = await token.user.get();
if (userToken.username !== user) {
if (userToken.username.toLowerCase() !== user.toLowerCase()) {
console.error('ERROR!!! - Signin with other user', userToken, user);
throw new UserError('Try again');
}