Changeset 8d1b3c


Ignore:
Timestamp:
03/23/18 20:55:53 (5 months ago)
Author:
pierre-alain <pierre-alain@…>
Branches:
master
Parents:
bcf9b9
git-author:
pierre-alain <pierre-alain@…> (03/23/18 20:55:53)
git-committer:
pierre-alain <pierre-alain@…> (03/23/18 20:55:53)
Message:

using logout when session cookie is old or not registered in the database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OWR/Controller.php

    rda5140 r8d1b3c  
    14381438            if(!$this->_user->checkToken(true, $this->_request->uid, $this->_request->tlogin, $this->_request->key, $this->_request->do)) 
    14391439            { 
    1440                 $this->_user->reset(); 
    1441                 $this->_buildPage('login', array('error' => Utilities::iGet()->_('Invalid token'))); 
    1442                 return $this; 
     1440                //$this->_user->reset(); 
     1441                //$this->_buildPage('login', array('error' => Utilities::iGet()->_('Invalid token'))); 
     1442                return $this->do_logout(); 
    14431443            } 
    14441444        } 
     
    14481448            if(!$this->_user->checkToken()) 
    14491449            { 
    1450                 $this->_user->reset(); 
    1451                 $this->_buildPage('login', array('error' => Utilities::iGet()->_('Invalid token'))); 
    1452                 return $this; 
     1450                //$this->_user->reset(); 
     1451                //$this->_buildPage('login', array('error' => Utilities::iGet()->_('Invalid token'))); 
     1452                return $this->do_logout(); 
    14531453            } 
    14541454 
Note: See TracChangeset for help on using the changeset viewer.