"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Controller/Component/AuthComponent.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

AuthComponent.php  (cakephp-4.0.1):AuthComponent.php  (cakephp-4.0.2)
skipping to change at line 777 skipping to change at line 777
return $redirectUrl; return $redirectUrl;
} }
/** /**
* Use the configured authentication adapters, and attempt to identify the u ser * Use the configured authentication adapters, and attempt to identify the u ser
* by credentials contained in $request. * by credentials contained in $request.
* *
* Triggers `Auth.afterIdentify` event which the authenticate classes can li sten * Triggers `Auth.afterIdentify` event which the authenticate classes can li sten
* to. * to.
* *
* @return array|bool User record data, or false, if the user could not be i dentified. * @return array|false User record data, or false, if the user could not be identified.
*/ */
public function identify() public function identify()
{ {
$this->_setDefaults(); $this->_setDefaults();
if (empty($this->_authenticateObjects)) { if (empty($this->_authenticateObjects)) {
$this->constructAuthenticate(); $this->constructAuthenticate();
} }
foreach ($this->_authenticateObjects as $auth) { foreach ($this->_authenticateObjects as $auth) {
$result = $auth->authenticate( $result = $auth->authenticate(
skipping to change at line 945 skipping to change at line 945
if (empty($this->_authenticateObjects)) { if (empty($this->_authenticateObjects)) {
$this->constructAuthenticate(); $this->constructAuthenticate();
} }
return $this->_authenticateObjects[$alias] ?? null; return $this->_authenticateObjects[$alias] ?? null;
} }
/** /**
* Set a flash message. Uses the Flash component with values from `flash` co nfig. * Set a flash message. Uses the Flash component with values from `flash` co nfig.
* *
* @param string|bool $message The message to set. * @param string|false $message The message to set. False to skip.
* @return void * @return void
*/ */
public function flash($message): void public function flash($message): void
{ {
if ($message === false) { if ($message === false) {
return; return;
} }
$this->Flash->set($message, $this->_config['flash']); $this->Flash->set($message, $this->_config['flash']);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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