mandatory 2fa: show undismissable dialog and warning

This commit is contained in:
Girish Ramakrishnan
2025-12-01 20:45:05 +01:00
parent e5a1fc9e2d
commit 76f2c5f9fc
15 changed files with 18 additions and 29 deletions
+1 -3
View File
@@ -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();