Subversion Repositories SmartDukaan

Rev

Rev 19929 | Rev 20138 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19929 Rev 20132
Line 15... Line 15...
15
 
15
 
16
    public function beforeFilter() {
16
    public function beforeFilter() {
17
    	parent::beforeFilter();
17
    	parent::beforeFilter();
18
    	// $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'dashboard');
18
    	// $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'dashboard');
19
    	$this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display','home');
19
    	$this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display','home');
20
        $this->Auth->allow(array('mine','login', 'forgotten_password', 'register', 'activate', 'checkemail','checkfbuser','registertwitteruser','skipmobileverification','reauthenticate','edit','mywallet','admin_push','socialauth','oneringcb','admin_usersanctions','admin_loanhistory','admin_credithistory','sendseen')); 
20
        $this->Auth->allow(array('mine','login', 'forgotten_password', 'register', 'activate', 'checkemail','checkfbuser','registertwitteruser','skipmobileverification','reauthenticate','edit','mywallet','admin_push','socialauth','oneringcb','admin_usersanctions','admin_loanhistory','admin_credithistory','sendseen','cartdetails')); 
21
		$this->Cookie->name = 'profittill';
21
		$this->Cookie->name = 'profittill';
22
		$this->Cookie->time = 86400*30; 
22
		$this->Cookie->time = 86400*30; 
23
		$this->Cookie->path = '/';
23
		$this->Cookie->path = '/';
24
		$this->Cookie->key = 'qSI232qs*&sXOw!adre@34SAv!@*(XSL#$%)asGb$@11~_+!@#H23s~#^';
24
		$this->Cookie->key = 'qSI232qs*&sXOw!adre@34SAv!@*(XSL#$%)asGb$@11~_+!@#H23s~#^';
25
		$this->Cookie->httpOnly = true;
25
		$this->Cookie->httpOnly = true;