Beispiel #1
0
        /// <summary>
        /// Registered the Phone Two-Factor registration service with Factors
        /// </summary>
        /// <param name="registration"></param>
        /// <param name="configuration"></param>
        /// <returns></returns>
        public static FactorsRegistration UsePhoneFactor(this FactorsRegistration registration, PhoneConfiguration configuration)
        {
            Instance = new PhoneProvider(configuration);

            registration.RegisterFeature <PhoneFeatureType>(Instance);
            return(registration);
        }
Beispiel #2
0
        /// <summary>
        /// Registered the Email Two-Factor registration service with Factors
        /// </summary>
        /// <param name="registration"></param>
        /// <param name="configuration"></param>
        /// <returns></returns>
        public static FactorsRegistration UseEmailFactor(this FactorsRegistration registration, EmailConfiguration configuration)
        {
            Instance = new EmailProvider(configuration);

            registration.RegisterFeature <EmailFeatureType>(Instance);
            return(registration);
        }