fix namespacing error
This commit is contained in:
parent
82fd15706e
commit
2c69403fd6
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue