mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix: Authentication on CentOS6 (#7771)
There is no need to redeclare abstract functions if the class is already abstract and they are declared in parent. For some reason the PHP on CentOS7 throws an error with this where all other php versions I tested were fine with it.
This commit is contained in:
@@ -143,7 +143,7 @@ abstract class AuthorizerBase implements Authorizer
|
||||
$db_entry['session_token'] = $token;
|
||||
$db_entry['session_auth'] = $auth;
|
||||
dbInsert($db_entry, 'session');
|
||||
}\
|
||||
}
|
||||
|
||||
setcookie('sess_id', $sess_id, $expiration, '/', null, Config::get('secure_cookies'), true);
|
||||
setcookie('token', $token_id, $expiration, '/', null, Config::get('secure_cookies'), true);
|
||||
@@ -200,9 +200,6 @@ abstract class AuthorizerBase implements Authorizer
|
||||
setcookie('auth', '', $time, '/', null, Config::get('secure_cookies'));
|
||||
}
|
||||
|
||||
|
||||
abstract public function authenticate($username, $password);
|
||||
|
||||
public function reauthenticate($sess_id, $token)
|
||||
{
|
||||
//not supported by default
|
||||
@@ -231,22 +228,12 @@ abstract class AuthorizerBase implements Authorizer
|
||||
return 0;
|
||||
}
|
||||
|
||||
abstract public function userExists($username, $throw_exception = false);
|
||||
|
||||
abstract public function getUserlevel($username);
|
||||
|
||||
abstract public function getUserid($username);
|
||||
|
||||
abstract public function getUser($user_id);
|
||||
|
||||
public function deleteUser($userid)
|
||||
{
|
||||
//not supported by default
|
||||
return 0;
|
||||
}
|
||||
|
||||
abstract public function getUserlist();
|
||||
|
||||
public function canUpdateUsers()
|
||||
{
|
||||
return static::$CAN_UPDATE_USER;
|
||||
|
Reference in New Issue
Block a user