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.

Login.cshtml 1.7KB

1234567891011121314151617181920212223242526272829303132333435
  1. @model Teknik.Areas.Users.ViewModels.LoginViewModel
  2. @if (Model.Config.UserConfig.LoginEnabled)
  3. {
  4. <div class="row">
  5. <div class="col-sm-12 text-center">
  6. <div id="loginStatus"></div>
  7. </div>
  8. </div>
  9. <form role="form" id="loginForm" action="@Url.SubRouteUrl("user", "User.Login")" method="post" accept-charset="UTF-8">
  10. <input name="Login.ReturnUrl" id="loginReturnUrl" type="hidden" value="@Model.ReturnUrl" />
  11. <div class="form-group">
  12. <input type="text" class="form-control" id="loginUsername" value="" placeholder="Username" name="Login.Username" data-val-required="The Username field is required." data-val="true" />
  13. </div>
  14. <div class="form-group">
  15. <input type="password" class="form-control" id="loginPassword" value="" placeholder="Password" name="Login.Password" data-val-required="The Password field is required." data-val="true" />
  16. </div>
  17. <div class="checkbox">
  18. <label>
  19. <input id="loginRememberMe" type="checkbox" value="true" name="Login.RememberMe" data-val-required="The Remember Me field is required." data-val="true" /><input name="Login.RememberMe" type="hidden" value="false"> Remember Me
  20. </label>
  21. </div>
  22. @if (Model.Config.UserConfig.PasswordResetEnabled)
  23. {
  24. <p class="text-center"><a href="@Url.SubRouteUrl("user", "User.ResetPassword")">Forgotten Password?</a></p>
  25. }
  26. <div class="form-group text-center">
  27. <button class="btn btn-primary" id="loginSubmit" type="submit" name="Login.Submit">Sign In</button>
  28. </div>
  29. </form>
  30. }
  31. else
  32. {
  33. <h3>User logins have been disabled</h3>
  34. }