Support MFA recovery tokens

This commit is contained in:
garrettmills
2020-05-30 17:21:47 -05:00
parent a1a70e0548
commit 8680242349
25 changed files with 393 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ const app_config = {
* Can be used to generate fully-qualified links.
*/
url: env("APP_URL", "http://localhost:8000/"),
default_locale: env('APP_DEFAULT_LOCALE', 'en_US'),
}

View File

@@ -12,9 +12,11 @@ const traps_config = {
mfa_challenge: {
redirect_to: '/auth/mfa/challenge',
allowed_routes: [
'/auth/mfa/recovery',
'/auth/mfa/challenge',
'/api/v1/auth/mfa/attempt',
'/auth/logout',
'/api/v1/auth/mfa/recovery/attempt',
],
},
},