diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-29 17:18:23 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-29 17:18:23 -0500 |
commit | e72327d4b1fd92675372a118052f1c9847f882dc (patch) | |
tree | 8147a3ae0c6304769b8da747626467f032d1f171 /app/Auth/RememberMe.php | |
parent | 7d36747de634f7101bdaeed38e634adbc5f11b02 (diff) |
Improve session handler and add Ajax session check
Diffstat (limited to 'app/Auth/RememberMe.php')
-rw-r--r-- | app/Auth/RememberMe.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Auth/RememberMe.php b/app/Auth/RememberMe.php index 2585e96c..cb8a9b44 100644 --- a/app/Auth/RememberMe.php +++ b/app/Auth/RememberMe.php @@ -95,7 +95,7 @@ class RememberMe extends Base // Update the sequence $this->writeCookie( $record['token'], - $this->update($record['token'], $record['sequence']), + $this->update($record['token']), $record['expiration'] ); @@ -136,7 +136,7 @@ class RememberMe extends Base // Update the sequence $this->writeCookie( $record['token'], - $this->update($record['token'], $record['sequence']), + $this->update($record['token']), $record['expiration'] ); } @@ -237,17 +237,15 @@ class RememberMe extends Base * * @access public * @param string $token Session token - * @param string $sequence Sequence token * @return string */ - public function update($token, $sequence) + public function update($token) { $new_sequence = Security::generateToken(); $this->db ->table(self::TABLE) ->eq('token', $token) - ->eq('sequence', $sequence) ->update(array('sequence' => $new_sequence)); return $new_sequence; |