public async Task <IActionResult> Login([FromBody] LoginMetaModel model) { // return token var result = await _authencationService.SignInAsync(model); if (!result.Succeeded) { return(BadRequest()); } return(Ok(await _tokenService.BuildTokenAsync(model))); }
public async Task <UserToken> BuildTokenAsync(LoginMetaModel model) { throw new NotImplementedException(); }
public async Task <SignInResult> SignInAsync(LoginMetaModel model) { return(await _signInManager.PasswordSignInAsync(model.Email, model.Password, false, false)); }