The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Register.cshtml 1.2KB

12345678910111213141516171819202122232425
  1. @model Teknik.Areas.Profile.ViewModels.RegisterViewModel
  2. @if (Model.Config.UserConfig.RegistrationEnabled)
  3. {
  4. <form role="form" id="registrationForm" action="@Url.SubRouteUrl("profile", "Profile.Register")" method="post" accept-charset="UTF-8">
  5. @Html.AntiForgeryToken()
  6. <input name="ReturnUrl" id="ReturnUrl" type="hidden" value="@Model.ReturnUrl" />
  7. <div class="form-group">
  8. <input type="text" class="form-control" id="Username" value="" placeholder="Username" name="Username" data-val-required="The Username field is required." data-val="true"/>
  9. </div>
  10. <div class="form-group">
  11. <input type="password" class="form-control" id="Password" value="" placeholder="Password" name="Password" data-val-required="The Password field is required." data-val="true"/>
  12. </div>
  13. <div class="form-group">
  14. <input type="password" class="form-control" id="ConfirmPassword" value="" placeholder="Confirm Password" name="ConfirmPassword" data-val-required="The Confirm Password field is required." data-val="true" />
  15. </div>
  16. <div class="form-group text-center">
  17. <button class="btn btn-primary" id="reg_submit" type="submit" name="submit">Sign Up</button>
  18. </div>
  19. </form>
  20. }
  21. else
  22. {
  23. <h3>Registration has been disabled</h3>
  24. }