hotFix(validateCode): username comparation
gitea/salix/pipeline/pr-dev This commit looks good Details
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-08-08 11:51:46 +02:00
parent 8580fa0849
commit c8f1b7c5ff
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ module.exports = Self => {
fields: ['name', 'twoFactor']
}, myOptions);
if (user.name !== username)
if (user.name.toLowerCase() !== username.toLowerCase())
throw new UserError('Authentication failed');
await authCode.destroy(myOptions);