public TokenAuthController(
     LogInManager logInManager,
     ITenantCache tenantCache,
     AbpLoginResultTypeHelper abpLoginResultTypeHelper,
     TokenAuthConfiguration configuration,
     IExternalAuthConfiguration externalAuthConfiguration,
     IExternalAuthManager externalAuthManager,
     UserRegistrationManager userRegistrationManager,
     ICacheManager cacheManager,
     IImpersonationManager impersonationManager,
     IUserLinkManager userLinkManager,
     IOptions <IdentityOptions> identityOptions,
     IVerificationCodeService verificationCodeService,
     UserManager userManager, IDataFileObjectManager dataFileObjectManager
     )
 {
     _logInManager              = logInManager;
     _tenantCache               = tenantCache;
     _abpLoginResultTypeHelper  = abpLoginResultTypeHelper;
     _configuration             = configuration;
     _externalAuthConfiguration = externalAuthConfiguration;
     _externalAuthManager       = externalAuthManager;
     _userRegistrationManager   = userRegistrationManager;
     _cacheManager              = cacheManager;
     _impersonationManager      = impersonationManager;
     _userLinkManager           = userLinkManager;
     _identityOptions           = identityOptions.Value;
     _userManager               = userManager;
     _dataFileObjectManager     = dataFileObjectManager;
     _verificationCodeService   = verificationCodeService;
 }
Example #2
0
 public AccountController(ILogger <AccountController> logger, IDBService dbService
                          , ISMSService smsService, IVerificationCodeService verificationCodeService,
                          Dictionary <string, List <VerificationCode> > codeDict) : base(logger, dbService)
 {
     this.smsService = smsService;
     this.verificationCodeService = verificationCodeService;
     this.codeDict = codeDict;
 }
Example #3
0
 public RegisterController(UserContext context, IVerificationCodeService codeService)
 {
     _context     = context;
     _codeService = codeService;
     // 添加测试数据
     //if (!_codeService.IsExist("*****@*****.**"))
     //{
     //    _codeService.Add("*****@*****.**", "123123");
     //}
 }
Example #4
0
        /// <summary>重新加载</summary>
        private void Reload()
        {
            // 创建对象构建器(Spring.NET)
            string springObjectFile = VerificationCodeConfigurationView.Instance.Configuration.Keys["SpringObjectFile"].Value;

            SpringObjectBuilder objectBuilder = SpringObjectBuilder.Create(VerificationCodeConfiguration.ApplicationName, springObjectFile);

            // 创建数据服务对象
            this.m_VerificationCodeService         = objectBuilder.GetObject <IVerificationCodeService>(typeof(IVerificationCodeService));
            this.m_VerificationCodeTemplateService = objectBuilder.GetObject <IVerificationCodeTemplateService>(typeof(IVerificationCodeTemplateService));
        }
Example #5
0
 public ValidatableCodeService(IOptionsSnapshot <AppSettings> option,
                               IMemberService memberService,
                               IVerificationCodeService verificationCodeService,
                               IMemberLoginLogService memberLoginLogService,
                               ILogger <ValidatableCodeService> logger)
     : base(option)
 {
     _logger                  = logger;
     _memberService           = memberService;
     _verificationCodeService = verificationCodeService;
     _memberLoginLogService   = memberLoginLogService;
 }
Example #6
0
 public SignUpController(
     IVerificationCodeService verificationCodeService,
     SmsService smsService,
     UserSignUpManager userSignUpManager,
     UserManager userManager,
     AccountHolderService accountHolderService,
     NotificationScheduler notificationScheduler,
     SavingsInterestManager savingsInterestManager)
 {
     _verificationCodeService = verificationCodeService;
     _smsService             = smsService;
     _userSignUpManager      = userSignUpManager;
     _userManager            = userManager;
     _accountHolderService   = accountHolderService;
     _notificationScheduler  = notificationScheduler;
     _savingsInterestManager = savingsInterestManager;
 }
Example #7
0
 public LoginModule(
     IMemberService memberService,
     IMemberTokenService memberTokenService,
     ILoginValidatableService loginValidatableService,
     IVerificationCodeService verificationCodeService,
     IMemberLoginLogService memberLoginLogService,
     ILogger <LoginModule> logger) : base("member", "api", "")
 {
     _memberService           = memberService;
     _memberTokenService      = memberTokenService;
     _loginValidatableService = loginValidatableService;
     _verificationCodeService = verificationCodeService;
     _memberLoginLogService   = memberLoginLogService;
     _logger = logger;
     Post("/test/debug/init", _ => InitDebugData());
     Post("/login", _ => DoLoginAsync());
     Post("/regist", _ => DoRegistAsync());
     Post("/logout", _ => DoLogoutAsync());
 }
Example #8
0
 public UsersController(
     IUserService userService,
     ITempUserService userTempService,
     IMapper mapper,
     IOptions <AppSettings> appSettings,
     IVerificationCodeService vcodeService,
     IHttpClientFactory clientFactory,
     IExternalLoginService externalLoginService,
     IHttpContextAccessor httpContextAccessor,
     INewsService newsService)
 {
     _userService          = userService;
     _userTempService      = userTempService;
     _mapper               = mapper;
     _appSettings          = appSettings.Value;
     _vcodeService         = vcodeService;
     _clientFactory        = clientFactory;
     _externalLoginService = externalLoginService;
     _httpContextAccessor  = httpContextAccessor;
     _newsService          = newsService;
 }
Example #9
0
 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());
 }
Example #10
0
        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());
        }
Example #11
0
 public UserService(DataContext context, IMapper mapper, IVerificationCodeService vcodeService)
 {
     _context      = context;
     _vcodeService = vcodeService;
     _mapper       = mapper;
 }
Example #12
0
 public TempUserService(DataContext context, IVerificationCodeService vcodeService)
 {
     _context      = context;
     _vcodeService = vcodeService;
 }
 public HomeController(IVerificationCodeService verificationCodeService)
 {
     this.verificationCodeService = verificationCodeService;
 }
Example #14
0
 public ApplicationUserService(IApplicationUserRepository userRepository, IVerificationCodeService verificationCodeService)
 {
     _userRepository          = userRepository;
     _verificationCodeService = verificationCodeService;
 }