1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

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

This commit is contained in:
Uncled1023 2016-09-29 14:42:12 -07:00
parent bbb819c1ad
commit a8c17ad109

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);
}