1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Issue #5107 Alt-auth

This commit is contained in:
camer0n
2023-11-20 15:35:06 -08:00
parent f62050cd01
commit 4a18306311

View File

@@ -94,7 +94,7 @@ class alt_auth_admin extends alt_auth_base
public function alt_auth_get_dropdown($name, $curval = '', $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";
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');
$_login = new auth_login;
$log_result = AUTH_UNKNOWN;
$log_result = defset('AUTH_UNKNOWN');
$pass_vars = array();
$val_name = trim(varset($_POST['nametovalidate']));
if(isset($_login->Available) && ($_login->Available === FALSE))
{ // Relevant auth method not available (e.g. PHP extension not loaded)
$log_result = AUTH_NOT_AVAILABLE;
$log_result = defset('AUTH_NOT_AVAILABLE');
}
else
{