public async Task <IActionResult> Authenticate(LoginRequestView data) { var serviceModel = _mapper.Map <RegistrationRequestDTO>(data); var token = await _authService.Authenticate(serviceModel); return(Ok(token)); }
public LoginResponseView Login(LoginRequestView loginView) { LoginResponseView result = ImiicSocialUser.Login(loginView, UserLoginTypeSetting.Friends); //如果登录成功,清除session if (result.IsLogin == true) { //登录成功,清楚私钥SESSION Context.Session.Remove("PrivateKey"); } return(result); }