Commit 4a0c98d7 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Renamed Auth_Internal class to AuthInternal according to the naming scheme,

and fixed up references to Auth_* classes.
parent a5bb37f0
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
defined('INTERNAL') || die(); defined('INTERNAL') || die();
class Auth_Internal extends Auth { class AuthInternal extends Auth {
/** /**
* Attempt to authenticate user * Attempt to authenticate user
...@@ -38,7 +38,7 @@ class Auth_Internal extends Auth { ...@@ -38,7 +38,7 @@ class Auth_Internal extends Auth {
throw new AuthUnknownUserException("\"$username\" is not known to Auth_Internal"); throw new AuthUnknownUserException("\"$username\" is not known to Auth_Internal");
} }
return Auth_Internal::validate_password($password, $user->password, $user->salt); return self::validate_password($password, $user->password, $user->salt);
} }
/** /**
...@@ -89,4 +89,10 @@ class Auth_Internal extends Auth { ...@@ -89,4 +89,10 @@ class Auth_Internal extends Auth {
} }
} }
/**
* Plugin configuration class. Nothing special required for this plugin...
*/
class PluginAuthInternal extends Plugin {
}
?> ?>
...@@ -318,7 +318,7 @@ function login_submit($values) { ...@@ -318,7 +318,7 @@ function login_submit($values) {
$authtype = auth_get_authtype_for_institution($institution); $authtype = auth_get_authtype_for_institution($institution);
safe_require('auth', $authtype, 'lib.php', 'require_once'); safe_require('auth', $authtype, 'lib.php', 'require_once');
$authclass = 'Auth_' . ucfirst($authtype); $authclass = 'Auth' . ucfirst($authtype);
try { try {
if (call_static_method($authclass, 'authenticate_user_account', $username, $password, $institution)) { if (call_static_method($authclass, 'authenticate_user_account', $username, $password, $institution)) {
log_dbg('user ' . $username . ' logged in OK'); log_dbg('user ' . $username . ' logged in OK');
......
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