Register.cshtml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @page
  2. @model RegisterModel
  3. @{
  4. ViewData["Title"] = "회원가입";
  5. }
  6. <div id="registForm" class="row row-cols-1 justify-content-center align-items-center min-vh-100">
  7. <div class="col col-12 col-sm-7 col-md-5 col-lg-5 col-xl-3">
  8. <section class="border rounded p-3">
  9. <h4>@ViewData["Title"]</h4>
  10. <form id="registerForm" asp-route-returnUrl="@Model.ReturnUrl" method="post" accept-charset="utf-8" autocomplete="off">
  11. <small>가입 후 이메일 인증이 필요하며 관리자의 <br/>최종 승인 후 접속이 가능합니다.</small>
  12. <hr />
  13. <div asp-validation-summary="ModelOnly" class="text-danger" role="alert"></div>
  14. <div class="form-floating mb-3">
  15. <input asp-for="Input.Email" class="form-control" autocomplete="username" aria-required="true" placeholder="name@example.com" />
  16. <label asp-for="Input.Email">Email</label>
  17. <span asp-validation-for="Input.Email" class="text-danger"></span>
  18. </div>
  19. <div class="form-floating mb-3">
  20. <input asp-for="Input.Password" class="form-control" autocomplete="new-password" aria-required="true" placeholder="password" />
  21. <label asp-for="Input.Password">Password</label>
  22. <span asp-validation-for="Input.Password" class="text-danger"></span>
  23. </div>
  24. <div class="form-floating mb-3">
  25. <input asp-for="Input.ConfirmPassword" class="form-control" autocomplete="new-password" aria-required="true" placeholder="password" />
  26. <label asp-for="Input.ConfirmPassword">Confirm Password</label>
  27. <span asp-validation-for="Input.ConfirmPassword" class="text-danger"></span>
  28. </div>
  29. <button id="registerSubmit" type="submit" class="w-100 btn btn-primary">회원가입</button>
  30. <p class="pt-3 text-center">
  31. <a asp-page="./Login" asp-route-returnUrl="@Model.ReturnUrl">< 취소하기</a>
  32. </p>
  33. </form>
  34. </section>
  35. </div>
  36. <div class="col">
  37. <div class="text-center ps-3 pe-3">
  38. <hr />
  39. <small>ⓒ PLAYR. All Rights Reserved</small>
  40. </div>
  41. @*
  42. <section>
  43. <h3>Use another service to register.</h3>
  44. <hr />
  45. @{
  46. if ((Model.ExternalLogins?.Count ?? 0) == 0)
  47. {
  48. <div>
  49. <p>
  50. There are no external authentication services configured. See this <a href="https://go.microsoft.com/fwlink/?LinkID=532715">article
  51. about setting up this ASP.NET application to support logging in via external services</a>.
  52. </p>
  53. </div>
  54. }
  55. else
  56. {
  57. <form id="external-account" asp-page="./ExternalLogin" asp-route-returnUrl="@Model.ReturnUrl" method="post" class="form-horizontal">
  58. <div>
  59. <p>
  60. @foreach (var provider in Model.ExternalLogins!)
  61. {
  62. <button type="submit" class="btn btn-primary" name="provider" value="@provider.Name" title="Log in using your @provider.DisplayName account">@provider.DisplayName</button>
  63. }
  64. </p>
  65. </div>
  66. </form>
  67. }
  68. }
  69. </section>
  70. *@
  71. </div>
  72. </div>
  73. @section Scripts {
  74. <partial name="_ValidationScriptsPartial" />
  75. }
  76. @section Styles {
  77. <link rel="stylesheet" href="~/css/account.css" asp-append-version="true" />
  78. }