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.3KB

123456789101112131415161718192021222324252627
  1. @model Teknik.Areas.Profile.ViewModels.LoginViewModel
  2. @if (Model.Config.UserConfig.LoginEnabled)
  3. {
  4. <form role="form" id="loginForm" action="@Url.SubRouteUrl("profile", "Profile.Login")" 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="checkbox">
  14. <label>
  15. <input id="RememberMe" type="checkbox" value="true" name="RememberMe" data-val-required="The Remember Me field is required." data-val="true" /><input name="RememberMe" type="hidden" value="false"> Remember Me
  16. </label>
  17. </div>
  18. <div class="form-group text-center">
  19. <button class="btn btn-primary" id="login_submit" type="submit" name="submit">Sign In</button>
  20. </div>
  21. </form>
  22. }
  23. else
  24. {
  25. <h3>User logins have been disabled</h3>
  26. }