mirror of
https://github.com/directus/directus.git
synced 2026-02-15 06:45:23 -05:00
Add tfa enforce flow (#7805)
* add tfa enforce flow * add 'tfa-secret' to recommended permissions * fix if theme if user has dark mode * oas: rename 'enable-2fa' to 'enable-tfa' * Add required user fields * Uniformize styling * Fix direct and invalid routing * Add required permission docs * Fix typescript warnings * Fix typescript warnings 2 * Allow auto theme * Nest duplicate condition check * Fix routing for users without role * Follow page redirects * Reduce the use of redirect query * Improve error UX * Allow admins to disable 2FA * Improve autofocus UX * Override update permission for 'tfa_secret' when role enforces TFA * Remove permission requirements from docs Co-authored-by: Jose Varela <joselcvarela@gmail.com> Co-authored-by: rijkvanzanten <rijkvanzanten@me.com> Co-authored-by: ian <licitdev@gmail.com>
This commit is contained in:
@@ -121,6 +121,7 @@ export const appRecommendedPermissions: Partial<Permission>[] = [
|
||||
'avatar',
|
||||
'language',
|
||||
'theme',
|
||||
'tfa_secret',
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user