Added 2fa warning in UserProfile

This commit is contained in:
Frank Schubert
2024-01-30 19:39:13 +01:00
parent a6c17d4882
commit d054facc8f
2 changed files with 19 additions and 0 deletions
+16
View File
@@ -210,6 +210,22 @@ class mfRouter {
session_name(MFAPPNAME."_session");
session_start();
}
/*$user = new User();
$user->loadMe();
if($user->twofactor < 1 && $classname != "mfLoginController" && $classname != "UserProfileController" && $this->action != "logout" && $this->action != "Logout") {
//$this->mod = "UserProfile";
//$this->action = "Index";
if(MFUSEFANCYURLS) {
header("Location: $baseurl/UserProfile");
exit;
} else {
header("Location: $baseurl?Mod=UserProfile");
exit;
}
}*/
}
$request['mod'] = ucfirst($this->mod);