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) {
|
func (a AccountAPI) Routes() (*httprouter.Router, error) {
|
||||||
authMw2fa := authMiddleware(middleware.AuthMiddlewareOptions{
|
authMw2fa := authMiddleware(middleware.AuthMiddlewareOptions{
|
||||||
Identity: a.identity,
|
Identity: a.identity,
|
||||||
Accounts: a.accounts,
|
Accounts: a.accounts,
|
||||||
Config: a.config,
|
Config: a.config,
|
||||||
Purpose: account.JWTPurpose2FA,
|
Purpose: account.JWTPurpose2FA,
|
||||||
|
EmptyAllowed: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
authMw := authMiddleware(middleware.AuthMiddlewareOptions{
|
authMw := authMiddleware(middleware.AuthMiddlewareOptions{
|
||||||
|
|
Loading…
Reference in New Issue