refactor: set ExpiredAllowed on loginAuthMw2fa
This commit is contained in:
parent
2528fd0afe
commit
7616d9f7c9
|
@ -352,11 +352,12 @@ func (a AccountAPI) updatePassword(c jape.Context) {
|
||||||
|
|
||||||
func (a *AccountAPI) Routes() (*httprouter.Router, error) {
|
func (a *AccountAPI) Routes() (*httprouter.Router, error) {
|
||||||
loginAuthMw2fa := authMiddleware(middleware.AuthMiddlewareOptions{
|
loginAuthMw2fa := 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,
|
EmptyAllowed: true,
|
||||||
|
ExpiredAllowed: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
authMw := authMiddleware(middleware.AuthMiddlewareOptions{
|
authMw := authMiddleware(middleware.AuthMiddlewareOptions{
|
||||||
|
|
Loading…
Reference in New Issue