Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #15 from majna/cookie
Browse files Browse the repository at this point in the history
Remove unused settings from Cookie adapter
  • Loading branch information
ceeram committed Jan 13, 2015
2 parents 05293d2 + 1a5472f commit 6b4ba45
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Controller/Component/Auth/CookieAuthenticate.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
App::uses('BaseAuthenticate', 'Controller/Component/Auth');
App::uses('AuthComponent', 'Controller/Component');
App::uses('Router', 'Routing');

/**
* An authentication adapter for AuthComponent
Expand All @@ -18,10 +17,6 @@
* 'userModel' => 'User',
* 'scope' => array('User.active' => 1),
* 'crypt' => 'rijndael', // Defaults to rijndael(safest), optionally set to 'cipher' if required
* 'cookie' => array(
* 'name' => 'RememberMe',
* 'time' => '+2 weeks',
* )
* )
* )
* }}}
Expand All @@ -38,11 +33,6 @@ class CookieAuthenticate extends BaseAuthenticate {
* @param array $settings Settings
*/
public function __construct(ComponentCollection $collection, $settings) {
$this->settings['cookie'] = array(
'name' => 'RememberMe',
'time' => '+2 weeks',
'base' => Router::getRequest()->base
);
$this->settings['crypt'] = 'rijndael';
parent::__construct($collection, $settings);
}
Expand Down

0 comments on commit 6b4ba45

Please sign in to comment.