summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2016-12-28 02:03:03 +0100
committerArnold Daniels <arnold@jasny.net>2016-12-28 02:03:03 +0100
commit098d813da696d824a47508af101f50763b325954 (patch)
treee1e82d9a90c435b941cde3390f44cb90935c1242
parent3432fd38e5d7babaad493a4100c13efb3df7c1af (diff)
downloadauth-098d813da696d824a47508af101f50763b325954.zip
auth-098d813da696d824a47508af101f50763b325954.tar.gz
auth-098d813da696d824a47508af101f50763b325954.tar.bz2
Minor fix in doc block
-rw-r--r--src/Auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Auth.php b/src/Auth.php
index 5e2d195..3f70fbf 100644
--- a/src/Auth.php
+++ b/src/Auth.php
@@ -88,7 +88,7 @@ abstract class Auth
/**
* Set the current user
*
- * @param User|null $user
+ * @param User $user
* @return User|null
*/
public function setUser(User $user)
@@ -142,7 +142,7 @@ abstract class Auth
{
$user = $this->fetchUserByUsername($username);
- if (!$this->verifyCredentials($user, $password)) {
+ if (!isset($user) || !$this->verifyCredentials($user, $password)) {
return null;
}