Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var userId = signinHelper.GetVerifiedUserId();

            if (userId == null)
            {
                Response.Redirect("/Account/Error", true);
            }
            var userFactors = manager.GetValidTwoFactorProviders(userId);

            Providers.DataSource = userFactors.Select(x => x).ToList();
            Providers.DataBind();
        }