mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
Replace tabs with spaces
This commit is contained in:
parent
5729af70e1
commit
1fc6ef1d15
@ -62,7 +62,7 @@ class RestfulServer extends Controller
|
|||||||
* @var array Class names for authenticators to use on API access
|
* @var array Class names for authenticators to use on API access
|
||||||
*/
|
*/
|
||||||
private static $authenticators = [
|
private static $authenticators = [
|
||||||
BasicRestfulAuthenticator::class
|
BasicRestfulAuthenticator::class
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -859,9 +859,9 @@ class RestfulServer extends Controller
|
|||||||
$authClasses = $this->config()->authenticators;
|
$authClasses = $this->config()->authenticators;
|
||||||
$member = null;
|
$member = null;
|
||||||
foreach ($authClasses as $authClass) {
|
foreach ($authClasses as $authClass) {
|
||||||
if ($member = $authClass::authenticate()) {
|
if ($member = $authClass::authenticate()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Security::setCurrentUser($member);
|
Security::setCurrentUser($member);
|
||||||
return $member;
|
return $member;
|
||||||
|
Loading…
Reference in New Issue
Block a user