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:
parent
bbb819c1ad
commit
a8c17ad109
@ -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…
Reference in New Issue
Block a user