/// <summary> /// 登录处理 /// </summary> /// <param name="model"></param> /// <returns></returns> public async Task <ResultModel <LoginResultModel> > Handle(EmailLoginModel model) { var log = CreateLog(model); if (log == null) { return(await Handle(model, null)); } log.LoginMode = Domain.LoginLog.LoginMode.Email; log.Email = model.Email; var result = await Handle(model, log); await SaveLog(log, result); return(result); }
/// <summary> /// 邮箱登录 /// </summary> /// <param name="model"></param> /// <returns></returns> public Task <ResultModel <LoginResultModel> > Login(EmailLoginModel model) { return(_emailLoginHandler.Handle(model)); }