aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/security/SessionManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/security/SessionManager.php')
-rw-r--r--application/security/SessionManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/security/SessionManager.php b/application/security/SessionManager.php
index b8b8ab8d..5eb4aac5 100644
--- a/application/security/SessionManager.php
+++ b/application/security/SessionManager.php
@@ -111,10 +111,10 @@ class SessionManager
111 * 111 *
112 * @param string $clientIpId Client IP address identifier 112 * @param string $clientIpId Client IP address identifier
113 */ 113 */
114 public function storeLoginInfo($clientIpId) 114 public function storeLoginInfo($clientIpId, $login = null)
115 { 115 {
116 $this->session['ip'] = $clientIpId; 116 $this->session['ip'] = $clientIpId;
117 $this->session['username'] = $this->conf->get('credentials.login'); 117 $this->session['username'] = $login ?: $this->conf->get('credentials.login');
118 $this->extendTimeValidityBy(self::$SHORT_TIMEOUT); 118 $this->extendTimeValidityBy(self::$SHORT_TIMEOUT);
119 } 119 }
120 120