public AuthenticationModelFactory(IWorkContext workContext,
                                   GoogleAuthenticatorService googleAuthenticatorService,
                                   GoogleAuthenticatorSettings googleAuthenticatorSettings)
 {
     _workContext = workContext;
     _googleAuthenticatorService  = googleAuthenticatorService;
     _googleAuthenticatorSettings = googleAuthenticatorSettings;
 }
示例#2
0
 public ManageController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ISmsSender smsSender,
     ILoggerFactory loggerFactory,
     GoogleAuthenticatorService googleAuthenticatorService)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _smsSender     = smsSender;
     _logger        = loggerFactory.CreateLogger <ManageController>();
     _googleAuthenticatorService = googleAuthenticatorService;
 }
 public AuthenticationController(
     CustomerSettings customerSettings,
     GoogleAuthenticatorService googleAuthenticatorService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerService customerService,
     ILocalizationService localizationService,
     INotificationService notificationService,
     IWorkContext workContext)
 {
     _customerSettings            = customerSettings;
     _googleAuthenticatorService  = googleAuthenticatorService;
     _customerRegistrationService = customerRegistrationService;
     _customerService             = customerService;
     _localizationService         = localizationService;
     _notificationService         = notificationService;
     _workContext = workContext;
 }
示例#4
0
 public GoogleAuthenticatorController(GoogleAuthenticatorService googleAuthenticatorService,
                                      GoogleAuthenticatorSettings googleAuthenticatorSettings,
                                      IGenericAttributeService genericAttributeService,
                                      ILocalizationService localizationService,
                                      INotificationService notificationService,
                                      IPermissionService permissionService,
                                      ISettingService settingService,
                                      IWorkContext workContext
                                      )
 {
     _googleAuthenticatorService  = googleAuthenticatorService;
     _googleAuthenticatorSettings = googleAuthenticatorSettings;
     _genericAttributeService     = genericAttributeService;
     _localizationService         = localizationService;
     _notificationService         = notificationService;
     _permissionService           = permissionService;
     _settingService = settingService;
     _workContext    = workContext;
 }