| | | 1 | | @page |
| | | 2 | | @model RegisterModel |
| | | 3 | | @{ |
| | 0 | 4 | | ViewData["Title"] = "Register"; |
| | | 5 | | } |
| | | 6 | | |
| | 0 | 7 | | <h1>@ViewData["Title"]</h1> |
| | | 8 | | |
| | | 9 | | <div class="row"> |
| | | 10 | | <div class="col-md-4"> |
| | 0 | 11 | | <form id="registerForm" asp-route-returnUrl="@Model.ReturnUrl" method="post"> |
| | | 12 | | <h2>Create a new account.</h2> |
| | | 13 | | <hr /> |
| | | 14 | | <div asp-validation-summary="ModelOnly" class="text-danger" role="alert"></div> |
| | | 15 | | <div class="form-floating mb-3"> |
| | | 16 | | <input asp-for="Input.Email" class="form-control" autocomplete="username" aria-required="true" placehold |
| | | 17 | | <label asp-for="Input.Email">Email</label> |
| | | 18 | | <span asp-validation-for="Input.Email" class="text-danger"></span> |
| | | 19 | | </div> |
| | | 20 | | <div class="form-floating mb-3"> |
| | | 21 | | <input asp-for="Input.Password" class="form-control" autocomplete="new-password" aria-required="true" pl |
| | | 22 | | <label asp-for="Input.Password">Password</label> |
| | | 23 | | <span asp-validation-for="Input.Password" class="text-danger"></span> |
| | | 24 | | </div> |
| | | 25 | | <div class="form-floating mb-3"> |
| | | 26 | | <input asp-for="Input.ConfirmPassword" class="form-control" autocomplete="new-password" aria-required="t |
| | | 27 | | <label asp-for="Input.ConfirmPassword">Confirm Password</label> |
| | | 28 | | <span asp-validation-for="Input.ConfirmPassword" class="text-danger"></span> |
| | | 29 | | </div> |
| | | 30 | | <button id="registerSubmit" type="submit" class="w-100 btn btn-lg btn-primary">Register</button> |
| | | 31 | | </form> |
| | | 32 | | </div> |
| | | 33 | | <div class="col-md-6 col-md-offset-2"> |
| | | 34 | | <section> |
| | | 35 | | <h3>Use another service to register.</h3> |
| | | 36 | | <hr /> |
| | | 37 | | @{ |
| | 0 | 38 | | if ((Model.ExternalLogins?.Count ?? 0) == 0) |
| | | 39 | | { |
| | | 40 | | <div> |
| | | 41 | | <p> |
| | | 42 | | There are no external authentication services configured. See this <a href="https://go.micro |
| | | 43 | | about setting up this ASP.NET application to support logging in via external services</a>. |
| | | 44 | | </p> |
| | | 45 | | </div> |
| | | 46 | | } |
| | | 47 | | else |
| | | 48 | | { |
| | 0 | 49 | | <form id="external-account" asp-page="./ExternalLogin" asp-route-returnUrl="@Model.ReturnUrl" method |
| | | 50 | | <div> |
| | | 51 | | <p> |
| | 0 | 52 | | @foreach (var provider in Model.ExternalLogins!) |
| | | 53 | | { |
| | 0 | 54 | | <button type="submit" class="btn btn-primary" name="provider" value="@provider.Name" |
| | | 55 | | } |
| | | 56 | | </p> |
| | | 57 | | </div> |
| | | 58 | | </form> |
| | | 59 | | } |
| | | 60 | | } |
| | | 61 | | </section> |
| | | 62 | | </div> |
| | | 63 | | </div> |