Esempio n. 1
0
        public ActionResult TwoFactorAuthentication()
        {
            // Redirect if the user isn't logged in
            if (!IdentityModel.CurrentUserLoggedIn)
            {
                return RedirectToAction("Login", "Admin");
            }

            var model = new UserModel();
            model.LoadTfaSettings();
            return View(model);
        }