Esempio n. 1
0
 public TotpValidator()
 {
     this.totpGenerator = new TotpGenerator();
 }
Esempio n. 2
0
        /// <summary>
        /// Get current user's code
        /// </summary>
        public static string Generate(string secret)
        {
            var totpg = new AspNetCore.Totp.TotpGenerator();

            return(totpg.Generate(secret).ToString());
        }