diff --git a/include/staff/staff.inc.php b/include/staff/staff.inc.php index 667b462312b603a205c912584dafb35fe15ac06c..55351fbee7864581e1294a72e56d758d2d068c48 100644 --- a/include/staff/staff.inc.php +++ b/include/staff/staff.inc.php @@ -121,7 +121,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); $('#password-fields').show(); "> <option value="">— Use any available backend —</option> - <?php foreach (AuthenticationBackend::allRegistered() as $ab) { + <?php foreach (StaffAuthenticationBackend::allRegistered() as $ab) { if (!$ab->supportsAuthentication()) continue; ?> <option value="<?php echo $ab::$id; ?>" <?php if ($info['backend'] == $ab::$id) diff --git a/scp/login.php b/scp/login.php index 17424b6aeda068aa29b8bd233416cc3c604ad868..5027bbb6bd70bd3d86a32cc24239376d8af8f0e0 100644 --- a/scp/login.php +++ b/scp/login.php @@ -26,7 +26,7 @@ $dest=($dest && (!strstr($dest,'login.php') && !strstr($dest,'ajax.php')))?$dest if($_POST) { // Lookup support backends for this staff $username = trim($_POST['userid']); - if ($user = AuthenticationBackend::process($username, + if ($user = StaffAuthenticationBackend::process($username, $_POST['passwd'], $errors)) { @header("Location: $dest"); require_once('index.php'); //Just incase header is messed up.