Add login capability; Add register page to routing; Block access from users that are not logged in.

This commit is contained in:
kevinpauer
2022-03-16 19:52:16 +01:00
parent 2375abbdcf
commit 2bf7f54f94
9 changed files with 100 additions and 83 deletions

View File

@@ -2,7 +2,7 @@
<div class="card card-container no-border">
<img
id="profile-img"
src="//ssl.gstatic.com/accounts/ui/avatar_2x.png"
src="https://i.kym-cdn.com/entries/icons/mobile/000/029/959/Screen_Shot_2019-06-05_at_1.26.32_PM.jpg"
class="profile-img-card"
/>
<form
@@ -66,7 +66,10 @@
</div>
</form>
<div class="alert alert-success" *ngIf="isLoggedIn">
Logged in as {{ roles }}.
Logged in as {{ accountName }}.
</div>
<button class="btn btn-secondary btn-block" routerLink="/register">
Sign up
</button>
</div>
</div>