(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| [HttpPost] | |
| public ActionResult Login(LoginViewModel model, string returnUrl) | |
| { | |
| var user = _userService.GetByEmail(model.Email); | |
| //check username and password from database, naive checking: password should be in SHA | |
| if (user != null && (user.Password == model.Password)) | |
| { | |
| var claims = new[] { | |
| new Claim(ClaimTypes.Name, user.Name), |