public LoginModuleSettings( LoginModuleOptions options = LoginModuleOptions.Default, ILoginMessagingService messagingService = null, TimeSpan?passwordExpirationPeriod = null, IPasswordHasher passwordHasher = null, int bcryptWorkFactor = 10) { Options = options; MessagingService = messagingService; PasswordExpirationPeriod = passwordExpirationPeriod; PasswordHasher = passwordHasher ?? new BCryptPasswordHasher(bcryptWorkFactor); }
public LoginModuleSettings( LoginModuleOptions options = LoginModuleOptions.Default, string encryptionChannelName = null, //uses default encryption channel if name is null TimeSpan? passwordExpirationPeriod = null, RecaptchaSettings recaptcha = null, IPasswordHasher passwordHasher = null, int bcryptWorkFactor = 10) { Options = options; EncryptionChannelName = encryptionChannelName; PasswordExpirationPeriod = passwordExpirationPeriod; Recaptcha = recaptcha; PasswordHasher = passwordHasher ?? new BCryptPasswordHasher(bcryptWorkFactor); }
public LoginModuleSettings( LoginModuleOptions options = LoginModuleOptions.Default, string encryptionChannelName = null, //uses default encryption channel if name is null TimeSpan?passwordExpirationPeriod = null, RecaptchaSettings recaptcha = null, IPasswordStrengthChecker passwordChecker = null, IPasswordHasher passwordHasher = null, int bcryptWorkFactor = 10) { Options = options; EncryptionChannelName = encryptionChannelName; PasswordExpirationPeriod = passwordExpirationPeriod; Recaptcha = recaptcha; PasswordChecker = passwordChecker; //if null, default will be created in LoginMOdule.Init PasswordHasher = passwordHasher ?? new BCryptPasswordHasher(bcryptWorkFactor); }
public static bool IsSet(this LoginModuleOptions options, LoginModuleOptions option) { return (options & option) != 0; }
public static bool IsSet(this LoginModuleOptions options, LoginModuleOptions option) { return((options & option) != 0); }