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

@ -276,6 +276,7 @@ func (a AccountAPI) Routes() (*httprouter.Router, error) {
Accounts: a.accounts,
Config: a.config,
Purpose: account.JWTPurpose2FA,
EmptyAllowed: true,
})
authMw := authMiddleware(middleware.AuthMiddlewareOptions{