Skip to content

Commit 135fc7b

Browse files
committed
Add method on getAccount
1 parent 5af5cc6 commit 135fc7b

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)