diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-03-06 07:41:35 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-03-06 07:41:35 +0300 |
commit | 0c4d13caed53b2702eef41461d0c8a4b25df48f6 (patch) | |
tree | 6fb6d2d54cedce1c204fb30b75f4d470fbf7ee83 /Views/Account/Login.cshtml | |
parent | cdd58a8f518d037658518c233e74beea22d03906 (diff) |
Base authorization/authentification
Diffstat (limited to 'Views/Account/Login.cshtml')
-rw-r--r-- | Views/Account/Login.cshtml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Views/Account/Login.cshtml b/Views/Account/Login.cshtml new file mode 100644 index 0000000..893155c --- /dev/null +++ b/Views/Account/Login.cshtml @@ -0,0 +1,31 @@ +@model MyDarling.Models.LoginModel +<!DOCTYPE html> +<html> + +<head> + <meta name="viewport" content="width=device-width" /> + <title>Login Page</title> + <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> +</head> + +<body> + <div class="m-1 p-1"> + <div class="text-danger" asp-validation-summary="All"></div> + <form asp-action="Login" asp-controller="Account" method="post"> + <input type="hidden" asp-for="ReturnUrl" /> + <div class="form-group"> + <label asp-for="Name"></label> + <div asp-validation-for="Name" class="text-danger"></div> + <input name="Name" class="form-control" value="@Model.Name"/> + </div> + <div class="form-group"> + <label asp-for="Password"></label> + <div asp-validation-for="Password" class="text-danger"></div> + <input name="Password" type="password" class="form-control" value="@Model.Password"/> + </div> + <button class="btn btn-primary mt-2" type="submit">Log In</button> + </form> + </div> +</body> + +</html>
\ No newline at end of file |