Skip to content

Commit 51bdede

Browse files
authored
Merge pull request #992 from alvar0hurtad0/991-fix-tests
Fix tests
2 parents 5af5cc6 + 135fc7b commit 51bdede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/authentication/RestfulAuthenticationManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getAccount(array $request = array(), $method = \RestfulInterface
8787
// Resolve the user based on the providers in the manager.
8888
$account = NULL;
8989
foreach ($this as $provider) {
90-
if ($provider->applies($request) && ($account = $provider->authenticate($request)) && $account->uid && $account->status) {
90+
if ($provider->applies($request, $method) && ($account = $provider->authenticate($request, $method)) && $account->uid && $account->status) {
9191
// The account has been loaded, we can stop looking.
9292
break;
9393
}

0 commit comments

Comments
 (0)