Skip to content

Commit

Permalink
Fix for Two Factor Config option
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Dec 19, 2017
1 parent d1bf10f commit dde7fdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions public_html/admin/configuration_validation.php
Expand Up @@ -360,6 +360,7 @@
$_CONF_VALIDATE['Core']['login_speedlimit'] = array('rule' => 'numeric');
$_CONF_VALIDATE['Core']['invalidloginattempts'] = array('rule' => 'numeric');
$_CONF_VALIDATE['Core']['invalidloginmaxtime'] = array('rule' => 'numeric');
$_CONF_VALIDATE['Core']['enable_twofactorauth'] = array('rule' => 'boolean');

/* Subgroup User and Submissions, Tab Login Settings, Fieldset Password */
$_CONF_VALIDATE['Core']['pass_alg'] = array(
Expand Down
2 changes: 1 addition & 1 deletion sql/updates/mysql_2.1.3_to_2.2.0.php
Expand Up @@ -90,7 +90,7 @@ function update_ConfValuesFor220()
$c->add('langurl_article',array('', 'article.php', 'story'),'@hidden',7,31,1,1830,TRUE, $me, 31);

// Add a config option to decide whether to globally allow two factor auth
$c->add('enable_twofactorauth',0,'select',4,18,NULL,1730,TRUE, $me, 18);
$c->add('enable_twofactorauth',0,'select',4,18,0,1730,TRUE, $me, 18);

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion sql/updates/pgsql_2.1.3_to_2.2.0.php
Expand Up @@ -90,7 +90,7 @@ function update_ConfValuesFor220()
$c->add('langurl_article',array('', 'article.php', 'story'),'@hidden',7,31,1,1830,TRUE, $me, 31);

// Add a config option to decide whether to globally allow two factor auth
$c->add('enable_twofactorauth',0,'select',4,18,NULL,1730,TRUE, $me, 18);
$c->add('enable_twofactorauth',0,'select',4,18,0,1730,TRUE, $me, 18);

return true;
}
Expand Down

0 comments on commit dde7fdb

Please sign in to comment.