Skip to content
Snippets Groups Projects
Commit 72d21a3f authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge remote branch 'upstream/develop-next' into develop-next

Conflicts:
	include/class.client.php
	include/class.usersession.php
parents 6f23bf7e 7d6a6990
No related branches found
No related tags found
No related merge requests found
...@@ -315,7 +315,7 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend { ...@@ -315,7 +315,7 @@ abstract class StaffAuthenticationBackend extends AuthenticationBackend {
$authsession['key'] = $authkey; $authsession['key'] = $authkey;
$staff->setAuthKey($authkey); $staff->setAuthKey($authkey);
$staff->refreshSession(); //set the hash. $staff->refreshSession(true); //set the hash.
$_SESSION['TZ_OFFSET'] = $staff->getTZoffset(); $_SESSION['TZ_OFFSET'] = $staff->getTZoffset();
$_SESSION['TZ_DST'] = $staff->observeDaylight(); $_SESSION['TZ_DST'] = $staff->observeDaylight();
...@@ -439,7 +439,7 @@ abstract class UserAuthenticationBackend extends AuthenticationBackend { ...@@ -439,7 +439,7 @@ abstract class UserAuthenticationBackend extends AuthenticationBackend {
// XXX: encrypt to hide the bk?? // XXX: encrypt to hide the bk??
$user->setAuthKey($authkey); $user->setAuthKey($authkey);
$user->refreshSession(); //set the hash. $user->refreshSession(true); //set the hash.
//Log login info... //Log login info...
$msg=sprintf('%s (%s) logged in [%s]', $msg=sprintf('%s (%s) logged in [%s]',
......
...@@ -133,7 +133,6 @@ class ClientSession extends EndUser { ...@@ -133,7 +133,6 @@ class ClientSession extends EndUser {
} }
function refreshSession($force=false){ function refreshSession($force=false){
$time = $this->session->getLastUpdate($this->token); $time = $this->session->getLastUpdate($this->token);
// Deadband session token updates to once / 30-seconds // Deadband session token updates to once / 30-seconds
if (!$force && time() - $time < 30) if (!$force && time() - $time < 30)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment