Permalink
Browse files

Removed unnecessary saving of the User GUID in Tag property.

  • Loading branch information...
1 parent 1b657b5 commit 2aa980d61308b4bf57448e35d8c664278361140c @mehrdada mehrdada committed Aug 13, 2012
@@ -47,7 +47,7 @@ public ActionResult Create(SessionViewModel sessionViewModel)
if (ModelState.IsValid)
{
- _authenticator.SetCookie(user.Username, tag: user.Id.ToByteArray());
+ _authenticator.SetCookie(user.Username);
if (!string.IsNullOrEmpty(sessionViewModel.ReturnUrl))
{
return Redirect(sessionViewModel.ReturnUrl);
@@ -45,7 +45,7 @@ public ActionResult Create(UserInputModel userInputModel)
_repository.SaveOrUpdate(user);
- _authenticator.SetCookie(user.Username, tag: user.Id.ToByteArray());
+ _authenticator.SetCookie(user.Username);
return RedirectToAction("Index", "Home");
}

0 comments on commit 2aa980d

Please sign in to comment.