Skip to content

Commit

Permalink
Adding default creds
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmonterom committed Mar 2, 2024
1 parent 6e3f65a commit 5bcb8b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TasksMVC/Controllers/UsersController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public IActionResult Login(string message = null)
ViewBag.Message = message;
}

var user = new LoginViewModel() { Email = "user1@email.com"};
var user = new LoginViewModel() { Email = "user1@email.com", Password = "Aa123456@"};


return View(user);
Expand Down
3 changes: 2 additions & 1 deletion TasksMVC/Views/Users/Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<div class="card">
<div class="card-body">
<h1>Login</h1>
<h6 style="color: darkgray">You can use the prefilled ones to test the app, just hit log in!</h6>
@if (ViewData.Keys.Contains("Message"))
{
<p class="text-danger">@ViewData["Message"]</p>
Expand All @@ -17,7 +18,7 @@

<div class="mb-3">
<label asp-for="Email" class="form-label"></label>
<input type="email" asp-for="Email" class="form-control" />
<input type="email" asp-for="Email" class="form-control" value="user1@email.com"/>
<span asp-validation-for="Email" class="text-danger"></span>
</div>

Expand Down

0 comments on commit 5bcb8b6

Please sign in to comment.