diff --git a/Facts/Controllers/AuthenticationControllerFacts.cs b/Facts/Controllers/AuthenticationControllerFacts.cs
index 7a84e25bf2..25edbf10a0 100644
--- a/Facts/Controllers/AuthenticationControllerFacts.cs
+++ b/Facts/Controllers/AuthenticationControllerFacts.cs
@@ -35,7 +35,7 @@ public void WillLogTheUserOnWhenTheUsernameAndPasswordAreValidAndUserIsConfirmed
userSvc: userSvc);
controller.LogOn(
- new SignInRequest() { UserNameOrEmail = "theUsername", Password = "thePassword" },
+ new SignInRequest() { UserName = "theUsername", Password = "thePassword" },
"theReturnUrl");
formsAuthSvc.Verify(x => x.SetAuthCookie(
@@ -57,7 +57,7 @@ public void WillNotLogTheUserOnWhenTheUsernameAndPasswordAreValidAndUserIsNotCon
userSvc: userSvc);
controller.LogOn(
- new SignInRequest() { UserNameOrEmail = "theUsername", Password = "thePassword" },
+ new SignInRequest() { UserName = "theUsername", Password = "thePassword" },
"theReturnUrl");
}
@@ -77,7 +77,7 @@ public void WillLogTheUserOnWithRolesWhenTheUsernameAndPasswordAreValidAndUserIs
userSvc: userSvc);
controller.LogOn(
- new SignInRequest() { UserNameOrEmail = "theUsername", Password = "thePassword" },
+ new SignInRequest() { UserName = "theUsername", Password = "thePassword" },
"theReturnUrl");
formsAuthSvc.Verify(x => x.SetAuthCookie(
diff --git a/Website/Controllers/AuthenticationController.cs b/Website/Controllers/AuthenticationController.cs
index 9c1e778d6c..02dd9ad51a 100644
--- a/Website/Controllers/AuthenticationController.cs
+++ b/Website/Controllers/AuthenticationController.cs
@@ -33,9 +33,8 @@ public virtual ActionResult LogOn(SignInRequest request, string returnUrl)
if (!ModelState.IsValid)
return View();
- // TODO: allow users to sign in with email address in addition to user name
var user = userSvc.FindByUsernameAndPassword(
- request.UserNameOrEmail,
+ request.UserName,
request.Password);
if (user == null)
diff --git a/Website/RequestModels/SignInRequest.cs b/Website/RequestModels/SignInRequest.cs
index f8d76ffbe1..a42220e090 100644
--- a/Website/RequestModels/SignInRequest.cs
+++ b/Website/RequestModels/SignInRequest.cs
@@ -6,8 +6,8 @@ public class SignInRequest
{
[Required]
[Display(Name = "Username")]
- [Hint("Enter either your username or email address.")]
- public string UserNameOrEmail { get; set; }
+ [Hint("Enter your username.")]
+ public string UserName { get; set; }
[Required]
[DataType(DataType.Password)]
diff --git a/Website/Views/Authentication/LogOn.generated.cs b/Website/Views/Authentication/LogOn.generated.cs
index 745946429e..2bbe77749e 100644
--- a/Website/Views/Authentication/LogOn.generated.cs
+++ b/Website/Views/Authentication/LogOn.generated.cs
@@ -2,7 +2,7 @@
//------------------------------------------------------------------------------
// \n Don\'t have an account yet? Log On\r\n\r\n \r\n Don\'t have an account yet? Register now.\nLog On
\n\n