Skip to content

Commit a8aed8d

Browse files
authored
Merge pull request #7 from MegaMaid/master
getToken will now return a boolean instead of abort()
2 parents 50e654f + aad23c3 commit a8aed8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jc21/PlexApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function setAuth($username, $password)
147147
}
148148

149149
/**
150-
* Tests credentials and returns the auth token
150+
* Tests the set username and password and returns the auth token
151151
*
152152
* @return string
153153
*/
@@ -157,7 +157,7 @@ public function getToken()
157157
{
158158
return $this->token;
159159
}
160-
return abort(401);
160+
return false;
161161
}
162162

163163
/**

0 commit comments

Comments
 (0)