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

1234567891011121314151617181920212223
  1. @model Teknik.Areas.Profile.ViewModels.LoginViewModel
  2. @using (Html.BeginForm("Login", "Profile", new { area = "Profile" }, FormMethod.Post, new { id = "loginForm" }))
  3. {
  4. @Html.ValidationMessage("Unable to login.")
  5. <input name="ReturnUrl" id="ReturnUrl" type="hidden" value="@Model.ReturnUrl" />
  6. <div class="form-group">
  7. <input type="text" class="form-control" id="Username" value="" placeholder="Username" name="Username" data-val-required="The Username field is required." data-val="true" />
  8. @Html.ValidationMessageFor(u => u.Username)
  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. @Html.ValidationMessageFor(u => u.Password)
  13. </div>
  14. <div class="checkbox">
  15. <label>
  16. <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
  17. </label>
  18. </div>
  19. <div class="form-group text-center">
  20. <button class="btn btn-primary" id="login_submit" type="submit" name="submit">Sign In</button>
  21. </div>
  22. }