[bug] Don't try per user auto-login if basic auth disabled

This commit is contained in:
Cohee
2024-10-09 02:04:47 +03:00
parent 0ada5407ee
commit a1352d817a
2 changed files with 4 additions and 3 deletions

View File

@@ -363,7 +363,7 @@ app.get('/login', async (request, response) => {
}
try {
const autoLogin = await userModule.tryAutoLogin(request);
const autoLogin = await userModule.tryAutoLogin(request, basicAuthMode);
if (autoLogin) {
return response.redirect('/');