public ActionResult LogOn(UserDto model) { var user = _userService.GetUserByLogin(model.Login); if (user !=null) // todo dodać obsługę wyjątków { if (CustomPasswordHasher.GeneratePassword(model.Password).Equals(user.Password)) { CreateUserTicket(model.Login, (int)user.Id); } } return View(); }
public ActionResult LogOn() { UserDto model = new UserDto(); return View(model); }