🔒 Profile page now links directly to SSO (#9)

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit was merged in pull request #9.
This commit is contained in:
2020-08-04 16:58:46 +01:00
committed by GitHub
parent 37653039c6
commit 1ec289a9fb

View File

@@ -45,7 +45,8 @@
<?php echo($_SESSION['full_name']); ?>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="/profile">Profile</a>
<a class="dropdown-item text-muted" href="#"><?php echo($_SESSION['username']); ?></a>
<a class="dropdown-item" href="<?php echo($_ENV['OIDC_HOST'] . "/account"); ?>">Profile</a>
<!-- <div class="dropdown-divider"></div> -->
<a class="dropdown-item" href="/logout">Log out</a>
</div>