"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/filters/auth/HttpBasicAuth.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

HttpBasicAuth.php  (yii2-2.0.35):HttpBasicAuth.php  (yii2-2.0.36)
skipping to change at line 103 skipping to change at line 103
{ {
list($username, $password) = $request->getAuthCredentials(); list($username, $password) = $request->getAuthCredentials();
if ($this->auth) { if ($this->auth) {
if ($username !== null || $password !== null) { if ($username !== null || $password !== null) {
$identity = $user->getIdentity() ?: call_user_func($this->auth, $username, $password); $identity = $user->getIdentity() ?: call_user_func($this->auth, $username, $password);
if ($identity === null) { if ($identity === null) {
$this->handleFailure($response); $this->handleFailure($response);
} elseif ($user->getIdentity(false) !== $identity) { } elseif ($user->getIdentity(false) !== $identity) {
$user->switchIdentity($identity); $user->login($identity);
} }
return $identity; return $identity;
} }
} elseif ($username !== null) { } elseif ($username !== null) {
$identity = $user->loginByAccessToken($username, get_class($this)); $identity = $user->loginByAccessToken($username, get_class($this));
if ($identity === null) { if ($identity === null) {
$this->handleFailure($response); $this->handleFailure($response);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)