Skip to content
Snippets Groups Projects
Commit 2c69403f authored by Robin Appelman's avatar Robin Appelman
Browse files

fix namespacing error

parent 82fd1570
Branches
No related tags found
No related merge requests found
...@@ -142,9 +142,9 @@ class Session implements Emitter { ...@@ -142,9 +142,9 @@ class Session implements Emitter {
public function setMagicInCookie($username, $token) { public function setMagicInCookie($username, $token) {
$secure_cookie = \OC_Config::getValue("forcessl", false); //TODO: DI for cookies and OC_Config $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); $expires = time() + \OC_Config::getValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15);
setcookie("oc_username", $username, $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_token", $token, $expires, \OC::$WEBROOT, '', $secure_cookie, true);
setcookie("oc_remember_login", true, $expires, OC::$WEBROOT, '', $secure_cookie); setcookie("oc_remember_login", true, $expires, \OC::$WEBROOT, '', $secure_cookie);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment