30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Start Page";
|
|
}
|
|
|
|
<div class="text-center">
|
|
<h1 class="display-4">Welcome to Hotline Planner</h1>
|
|
|
|
@if (User.Identity != null && User.Identity.IsAuthenticated)
|
|
{
|
|
<p class="lead">Hello, @User.Identity.Name!</p>
|
|
<p>You have successfully logged in.</p>
|
|
<form asp-controller="Account" asp-action="Logout" method="post">
|
|
<button type="submit" class="btn btn-outline-danger">Log Out</button>
|
|
</form>
|
|
}
|
|
else
|
|
{
|
|
<p class="lead">Please sign in to continue.</p>
|
|
<div class="d-grid gap-2 col-md-4 mx-auto">
|
|
<form asp-controller="Account" asp-action="ExternalLogin" method="post">
|
|
<input type="hidden" name="provider" value="Microsoft" />
|
|
<button type="submit" class="btn btn-lg btn-primary w-100">Login with Microsoft</button>
|
|
</form>
|
|
<form asp-controller="Account" asp-action="ExternalLogin" method="post">
|
|
<input type="hidden" name="provider" value="Google" />
|
|
<button type="submit" class="btn btn-lg btn-success w-100">Login with Google</button>
|
|
</form>
|
|
</div>
|
|
}
|
|
</div> |