Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (accountUnderTest.HashedPassword == GlobalConfig.MD5Hash(viewModel.Password))
- {
- Session["IsAdmin"] = "True";
- Session["AdminName"] = accountUnderTest.FirstName + " " + accountUnderTest.LastName;
- var sessionGUID = Guid.NewGuid().ToString();
- Session["AdminGUID"] = sessionGUID;
- var adminName = accountUnderTest.FirstName + " " + accountUnderTest.LastName;
- SessionManager.SessionKeys.Add(adminName, sessionGUID);
- return RedirectToAction("Index");
- }
Add Comment
Please, Sign In to add comment