refactor: add EmptyAllowed to authMw2fa
This commit is contained in:
parent
bf8d909a3c
commit
0efcd35d65
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue