Joachim Van Herwegen a47f5236ef feat: Full rework of account management
Complete rewrite of the account management and related systems.
Makes the architecture more modular,
allowing for easier extensions and configurations.
2023-10-06 11:04:40 +02:00

10 lines
474 B
Plaintext

<script>
// Redirect to the account page if logged in, if not: redirect to the login page
// The only reason this page exists, is because it makes sense to have something at /.account/account/.
// It is not in the controls though, as you would just use the login or the specific account URL.
(async() => {
const controls = await fetchControls('<%= idpIndex %>');
location.href = controls.html?.account?.account ?? controls.html.main.login;
})();
</script>