Commit a1723a3a authored by Amin.MasterkinG's avatar Amin.MasterkinG
Browse files

Check 2fa enabled on account_set_2fa.

parent ffd65762
......@@ -610,6 +610,11 @@ class user
public static function account_set_2fa($verify_key, $account)
{
global $antiXss;
if (empty(get_config('2fa_support'))) {
return false;
}
if (empty($verify_key) || empty($account)) {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment