diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-01 00:35:16 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-01 00:39:59 +0200 |
commit | 2c69403fd64adc8b5418ce3c719934a352c89035 (patch) | |
tree | e6683fee4c1765ea5ce4a2360a8d68488398fb64 /lib/user/session.php | |
parent | 82fd15706eeaf6e3770985cdf1aff86a1996f2e2 (diff) | |
download | nextcloud-server-2c69403fd64adc8b5418ce3c719934a352c89035.tar.gz nextcloud-server-2c69403fd64adc8b5418ce3c719934a352c89035.zip |
fix namespacing error
Diffstat (limited to 'lib/user/session.php')
-rw-r--r-- | lib/user/session.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/user/session.php b/lib/user/session.php index f4a9c8382a1..5406275170f 100644 --- a/lib/user/session.php +++ b/lib/user/session.php @@ -142,9 +142,9 @@ class Session implements Emitter { public function setMagicInCookie($username, $token) { $secure_cookie = \OC_Config::getValue("forcessl", false); //TODO: DI for cookies and OC_Config $expires = time() + \OC_Config::getValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15); - setcookie("oc_username", $username, $expires, OC::$WEBROOT, '', $secure_cookie); - setcookie("oc_token", $token, $expires, OC::$WEBROOT, '', $secure_cookie, true); - setcookie("oc_remember_login", true, $expires, OC::$WEBROOT, '', $secure_cookie); + setcookie("oc_username", $username, $expires, \OC::$WEBROOT, '', $secure_cookie); + setcookie("oc_token", $token, $expires, \OC::$WEBROOT, '', $secure_cookie, true); + setcookie("oc_remember_login", true, $expires, \OC::$WEBROOT, '', $secure_cookie); } /** |