Skip to content

Commit 9c4dd1b

Browse files
committed
Merge pull request #7 from enguys/master
Add return authenticatedToken
2 parents 4bff98f + c02a9fe commit 9c4dd1b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Uecode/Bundle/ApiKeyBundle/Security/Authentication/Provider/ApiKeyProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ public function authenticate(TokenInterface $token)
4444
}
4545
}
4646
} else {
47-
$this->doAuth($this->userProvider, $token);
47+
$result = $this->doAuth($this->userProvider, $token);
48+
if ($result !== false) {
49+
return $result;
50+
}
4851
}
4952
}
5053

0 commit comments

Comments
 (0)