mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Issue #5107 Alt-auth
This commit is contained in:
@@ -94,7 +94,7 @@ class alt_auth_admin extends alt_auth_base
|
|||||||
public function alt_auth_get_dropdown($name, $curval = '', $options = '')
|
public function alt_auth_get_dropdown($name, $curval = '', $options = '')
|
||||||
{
|
{
|
||||||
$optList = explode(',', $options);
|
$optList = explode(',', $options);
|
||||||
$authList = array_merge($optList, self::alt_auth_get_authlist(FALSE));
|
$authList = array_merge($optList, self::alt_auth_get_authlist());
|
||||||
$ret = "<select class='tbox' name='{$name}'>\n";
|
$ret = "<select class='tbox' name='{$name}'>\n";
|
||||||
foreach ($authList as $v)
|
foreach ($authList as $v)
|
||||||
{
|
{
|
||||||
@@ -389,13 +389,13 @@ class alt_auth_admin extends alt_auth_base
|
|||||||
e107::getDebug()->log('Loading: alt_auth/'.$prefix.'_auth.php');
|
e107::getDebug()->log('Loading: alt_auth/'.$prefix.'_auth.php');
|
||||||
|
|
||||||
$_login = new auth_login;
|
$_login = new auth_login;
|
||||||
$log_result = AUTH_UNKNOWN;
|
$log_result = defset('AUTH_UNKNOWN');
|
||||||
$pass_vars = array();
|
$pass_vars = array();
|
||||||
$val_name = trim(varset($_POST['nametovalidate']));
|
$val_name = trim(varset($_POST['nametovalidate']));
|
||||||
|
|
||||||
if(isset($_login->Available) && ($_login->Available === FALSE))
|
if(isset($_login->Available) && ($_login->Available === FALSE))
|
||||||
{ // Relevant auth method not available (e.g. PHP extension not loaded)
|
{ // Relevant auth method not available (e.g. PHP extension not loaded)
|
||||||
$log_result = AUTH_NOT_AVAILABLE;
|
$log_result = defset('AUTH_NOT_AVAILABLE');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user