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.
13 lines
417 B
Plaintext
13 lines
417 B
Plaintext
<script>
|
|
// Redirect to the account page if logged in, if not: redirect to the login page
|
|
(async() => {
|
|
const controls = await fetchControls('<%= idpIndex %>');
|
|
if (<%= authenticating %>) {
|
|
const body = await fetchJson(controls.oidc.prompt);
|
|
location.href = body.location;
|
|
} else {
|
|
location.href = controls.html?.account?.account ?? controls.html.main.login;
|
|
}
|
|
})();
|
|
</script>
|