Escape hatch.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@inject AccountManager Account
|
||||
@inject AccountState AccountState
|
||||
|
||||
|
||||
<div class="my-modal-background">
|
||||
@@ -26,13 +27,17 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
<h1>Welcome to Shogi!</h1>
|
||||
<div>
|
||||
<p>How would you like to proceed?</p>
|
||||
<p>
|
||||
<button @onclick="Account.LoginWithMicrosoftAccount">Log in</button>
|
||||
<button @onclick="Account.LoginWithGuestAccount">Proceed as Guest</button>
|
||||
@if (AccountState.User != null)
|
||||
{
|
||||
/* This is an escape hatch in case user login fails in certain ways. */
|
||||
<button @onclick="Account.LogoutAsync">Logout</button>
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user