mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00

Complete rewrite of the account management and related systems. Makes the architecture more modular, allowing for easier extensions and configurations.
10 lines
474 B
Plaintext
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>
|