Browse Source

Fixed user auth cookie not using the real username, but the one passed in from the model.

tags/2.0.3
Teknikode 4 years ago
parent
commit
a8c17ad109
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Teknik/Areas/User/Controllers/UserController.cs

+ 1
- 1
Teknik/Areas/User/Controllers/UserController.cs View File

@@ -216,7 +216,7 @@ namespace Teknik.Areas.Users.Controllers
{
returnUrl = Request.UrlReferrer.AbsoluteUri.ToString();
// They don't need two factor auth.
HttpCookie authcookie = UserHelper.CreateAuthCookie(model.Username, model.RememberMe, Request.Url.Host.GetDomain(), Request.IsLocal);
HttpCookie authcookie = UserHelper.CreateAuthCookie(user.Username, model.RememberMe, Request.Url.Host.GetDomain(), Request.IsLocal);
Response.Cookies.Add(authcookie);
}


Loading…
Cancel
Save