| 571 | * Tries auto-login if there is only one user and it's not password protected. | 571 | * Tries auto-login if there is only one user and it's not password protected. |
| 572 | * or another configured method such authlia or basic | 572 | * or another configured method such authlia or basic |
| 573 | * @param {import('express').Request} request Request object | 573 | * @param {import('express').Request} request Request object |
| | 574 | * @param {boolean} basicAuthMode If Basic auth mode is enabled |
| 574 | * @returns {Promise<boolean>} Whether auto-login was performed | 575 | * @returns {Promise<boolean>} Whether auto-login was performed |
| 575 | */ | 576 | */ |
| 576 | async function tryAutoLogin(request) { | 577 | async function tryAutoLogin(request, basicAuthMode) { |
| 577 | if (!ENABLE_ACCOUNTS || request.user || !request.session) { | 578 | if (!ENABLE_ACCOUNTS || request.user || !request.session) { |
| 578 | return false; | 579 | return false; |
| 579 | } | 580 | } |