public LoginValidatableService(IOptionsSnapshot <AppSettings> option, IMemberService memberService, IMemberLoginLogService memberLoginLogService, IVerificationCodeService verificationCodeService, IValidatableCodeService validatableCodeService, ILogger <LoginValidatableService> logger) : base(option) { _logger = logger; _memberService = memberService; _verificationCodeService = verificationCodeService; _validatableCodeService = validatableCodeService; _memberLoginLogService = memberLoginLogService; }
public VerificationCodeModule( IMemberService memberService, IValidatableCodeService validatableCodeService, IMemberTokenService memberTokenService, ILoginValidatableService loginValidatableService, IVerificationCodeService verificationCodeService, IMemberLoginLogService memberLoginLogService, ILogger <VerificationCodeModule> logger) { _memberService = memberService; _verificationCodeService = verificationCodeService; _validatableCodeService = validatableCodeService; _memberTokenService = memberTokenService; _loginValidatableService = loginValidatableService; _memberLoginLogService = memberLoginLogService; _logger = logger; //注册验证码 Get("/code/regist", p => GetRegistCodeAsync()); Post("/code/regist/check/{code}", p => CheckRegistCodeAsync((string)p.code)); ///短信验证码(验证码随机生成) Post("/code/verification", _ => GetCodeAsync()); }
public ManageModule( IMemberService memberService, IMemberTokenService memberTokenService, ILoginValidatableService loginValidatableService, IVerificationCodeService verificationCodeService, IValidatableCodeService validatableCodeService, IMemberLoginLogService memberLoginLogService, ILogger <ManageModule> logger) : base(memberTokenService, memberService) { _loginValidatableService = loginValidatableService; _verificationCodeService = verificationCodeService; _validatableCodeService = validatableCodeService; _memberLoginLogService = memberLoginLogService; _logger = logger; //修改密码验证码 Get("/code/renew-password", p => GetRenewPasswordCodeAsync()); Post("/code/renew-password/check/{code}", p => CheckRenewPasswordCodeAsync((string)p.code)); Get("/check-auth", _ => CheckAuth()); Post("/renew-password", _ => DoRenewPasswordAsync()); }