refactor: add EmptyAllowed to authMw2fa

This commit is contained in:
Derrick Hammer 2024-03-13 14:01:08 -04:00
parent bf8d909a3c
commit 0efcd35d65
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 4 deletions

View File

@ -272,10 +272,11 @@ func (a AccountAPI) pong(jc jape.Context) {
func (a AccountAPI) Routes() (*httprouter.Router, error) {
authMw2fa := authMiddleware(middleware.AuthMiddlewareOptions{
Identity: a.identity,
Accounts: a.accounts,
Config: a.config,
Purpose: account.JWTPurpose2FA,
Identity: a.identity,
Accounts: a.accounts,
Config: a.config,
Purpose: account.JWTPurpose2FA,
EmptyAllowed: true,
})
authMw := authMiddleware(middleware.AuthMiddlewareOptions{