diff --git a/Wishlist/Components/Account/Pages/Login.razor b/Wishlist/Components/Account/Pages/Login.razor
index b7b54cf..9480d7e 100644
--- a/Wishlist/Components/Account/Pages/Login.razor
+++ b/Wishlist/Components/Account/Pages/Login.razor
@@ -24,9 +24,9 @@
-
-
-
+
+
+
@@ -87,7 +87,7 @@
{
// This doesn't count login failures towards account lockout
// To enable password failures to trigger account lockout, set lockoutOnFailure: true
- var result = await SignInManager.PasswordSignInAsync(Input.Email, Input.Password, Input.RememberMe, lockoutOnFailure: false);
+ var result = await SignInManager.PasswordSignInAsync(Input.Username, Input.Password, Input.RememberMe, lockoutOnFailure: false);
if (result.Succeeded)
{
Logger.LogInformation("User logged in.");
@@ -112,7 +112,8 @@
private sealed class InputModel
{
- [Required] [EmailAddress] public string Email { get; set; } = "";
+ [Required]
+ public string Username { get; set; } = "";
[Required]
[DataType(DataType.Password)]
diff --git a/Wishlist/Components/Account/Pages/Register.razor b/Wishlist/Components/Account/Pages/Register.razor
index c477aef..0aa4244 100644
--- a/Wishlist/Components/Account/Pages/Register.razor
+++ b/Wishlist/Components/Account/Pages/Register.razor
@@ -33,6 +33,11 @@
+
+
+
+
+