Added 2fa warning in UserProfile
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user