mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
auth/pam, better CamelCase for https://github.com/opnsense/core/issues/3242
This commit is contained in:
parent
2e14587955
commit
3a361f8e59
@ -147,7 +147,7 @@ class AuthenticationFactory
|
||||
public function getService($service_name)
|
||||
{
|
||||
// cleanse service name
|
||||
$srv_name = str_replace('-', '_', strtolower($service_name));
|
||||
$srv_name = strtolower(str_replace(array('-', '_'), '', $service_name));
|
||||
foreach (glob(__DIR__."/Services/*.php") as $filename) {
|
||||
$srv_found = basename($filename, '.php');
|
||||
if (strtolower($srv_found) == $srv_name) {
|
||||
|
||||
@ -35,6 +35,6 @@ use OPNsense\Auth\IService;
|
||||
* opnsense test service
|
||||
* @package OPNsense\Auth
|
||||
*/
|
||||
class OPNsense_Auth_Test extends System
|
||||
class OPNsenseAuthTest extends System
|
||||
{
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user