mandatory 2fa: show undismissable dialog and warning
This commit is contained in:
@@ -268,9 +268,7 @@ onMounted(async () => {
|
||||
|
||||
avatarUrl.value = `https://${config.value.adminFqdn}/api/v1/cloudron/avatar`;
|
||||
|
||||
if (config.value.mandatory2FA && !profile.value.twoFactorAuthenticationEnabled) {
|
||||
window.location.hash = '/profile?setup2fa'; // VIEWS.PROFILE has a # in front
|
||||
}
|
||||
if (config.value.mandatory2FA && !profile.value.twoFactorAuthenticationEnabled) window.location.href = VIEWS.PROFILE;
|
||||
|
||||
window.addEventListener('hashchange', onHashChange);
|
||||
onHashChange();
|
||||
|
||||
Reference in New Issue
Block a user