public AccountController( IIdentityServerInteractionService interaction, IClientStore clientStore, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IAuthenticationSchemeProvider schemeProvider, IEventService events, IRegistrationService registrationService, IForgotPasswordService forgotPasswordService, IResetPasswordService resetPasswordService, ILoginService loginService, IGeoService geoService, IOptions <AppSettings> settings) { // if the TestUserStore is not in DI, then we'll just use the global users collection // this is where you would plug in your own custom identity management library (e.g. ASP.NET Identity) _interaction = interaction; _clientStore = clientStore; _signInManager = signInManager; _userManager = userManager; _schemeProvider = schemeProvider; _settings = settings; _events = events; _registrationService = registrationService; _forgotPasswordService = forgotPasswordService; _resetPasswordService = resetPasswordService; _loginService = loginService; _geoService = geoService; }
public AccountController(IUserService userService, IRoleUserService roleUserService, IRoleService roleService, IMenuService menuService, IForgotPasswordService forgotPasswordService, IEmailService emailService) { this.userService = userService; this.roleUserService = roleUserService; this.roleService = roleService; this.menuService = menuService; this.forgotPasswordService = forgotPasswordService; this.emailService = emailService; }
public ShxController(IEmailVerificationService emailVerificationService , IHostingEnvironment hostingEnvironment , IForgotPasswordService forgotPasswordService, IUserService userService , ICommunityGroupEmailService communityGroupEmailService) { _emailVerificationService = emailVerificationService; _env = hostingEnvironment; _forgotPasswordService = forgotPasswordService; _userService = userService; _communityGroupEmailService = communityGroupEmailService; }
public HomeController(ICommunitiesService communitiesService, ISignUpService SignUpService, IHostingEnvironment env, IEmailVerificationService emailVerificationService, ILoginService loginService, IForgotPasswordService forgotPasswordService ) { _communitiesService = communitiesService; _SignUpService = SignUpService; _emailVerificationService = emailVerificationService; _env = env; _loginService = loginService; _forgotPasswordService = forgotPasswordService; }
public AccountController( RivingtonContext context, RoleManager <ApplicationRole> roleManager, UserManager <ApplicationUser> userManager, IConfiguration configuration, IAccountcontrollerService accountcontrollerService, IForgotPasswordService forgotPasswordService, IForgotPasswordRepository forgotPasswordRepository ) : base(context, roleManager, userManager, configuration) { this.accountcontrollerService = accountcontrollerService; this.forgotPasswordService = forgotPasswordService; this.forgotPasswordRepository = forgotPasswordRepository; }
public AuthController(IAuthService authService, IForgotPasswordService passwordService, IUserService userService) { _authService = authService; _passwordService = passwordService; _userService = userService; }
/// <summary> /// Constructor /// </summary> /// <param name="service"></param> /// <param name="securityProvider"></param> public ForgotPasswordController(IForgotPasswordService service, ISecurityProvider securityProvider) : base(securityProvider) { _service = service; }
public ForgotPasswordCommandHandler(IForgotPasswordService service, IUnitOfWork unitOfWork) { _service = service; _unitOfWork = unitOfWork; }
public ForgotPasswordController(IForgotPasswordService service) { _service = service; }
public AccountController(IAccountServices accountServices, IRegisterService registerServices, IForgotPasswordService forgotPasswordService) { _accountServices = accountServices; _registerServices = registerServices; _forgotPasswordService = forgotPasswordService; }
public ForgotPasswordHandler(IForgotPasswordService forgotPasswordService) { this.forgotPasswordService = forgotPasswordService; }
/// <summary> /// Initializes a new instance of the <see cref="ForgotPasswordRuleEngine" /> class. /// </summary> /// <param name="forgotPasswordService">The forgot password service.</param> public ForgotPasswordRuleEngine(IForgotPasswordService forgotPasswordService) { this.forgotPasswordService = forgotPasswordService; }
public async Task <IActionResult> ForgotPassword([FromBody] ForgotPasswordDto forgotPasswordDto, [FromServices] IForgotPasswordService service) { var forgotPasswordValidator = new ForgotPasswordValidator(); var validatorResult = await forgotPasswordValidator.ValidateAsync(forgotPasswordDto); if (validatorResult.IsValid) { await service.RequestPasswordReset(forgotPasswordDto); if (!service.Status.HasErrors) { return(Ok()); } return(BadRequest(service.Status.Errors)); } var validationErrors = validatorResult.Errors.Select(error => new ValidationResult(error.ErrorMessage)) .ToImmutableList(); return(BadRequest(validationErrors)); }
public VerifyCodeViewModel(IForgotPasswordService service, IUserDialogs dialog) { _service = service; _udialog = dialog; }
/** * Constructor */ public ForgotPasswordController(IForgotPasswordService forgotPasswordService) { _forgotPasswordService = forgotPasswordService; }
public ForgotPasswordModel(UserManager <IdentityUser> userManager, IForgotPasswordService forgotPasswordService) { _userManager = userManager; _forgotPasswordService = forgotPasswordService; }
public ForgotPasswordController(ILogger <ForgotPasswordController> logger, IForgotPasswordService forgotPasswordService) { _logger = logger; _forgotPasswordService = forgotPasswordService; }
public NewPasswordViewModel(IForgotPasswordService service, IUserDialogs dialog) { _udialog = dialog; _service = service; }