forgot a class name
This commit is contained in:
parent
2ea06f67bd
commit
eb79ccafe3
1 changed files with 2 additions and 2 deletions
|
@ -537,8 +537,8 @@ class OC{
|
||||||
// confirm credentials in cookie
|
// confirm credentials in cookie
|
||||||
if(isset($_COOKIE['oc_token']) && OC_User::userExists($_COOKIE['oc_username'])) {
|
if(isset($_COOKIE['oc_token']) && OC_User::userExists($_COOKIE['oc_username'])) {
|
||||||
// delete outdated cookies
|
// delete outdated cookies
|
||||||
cleanupLoginTokens($_COOKIE['oc_username']);
|
self::cleanupLoginTokens($_COOKIE['oc_username']);
|
||||||
// get new tokens
|
// get stored tokens
|
||||||
$tokens = OC_Preferences::getKeys($_COOKIE['oc_username'], 'login_token');
|
$tokens = OC_Preferences::getKeys($_COOKIE['oc_username'], 'login_token');
|
||||||
// test cookies token against stored tokens
|
// test cookies token against stored tokens
|
||||||
if (in_array($_COOKIE['oc_token'], $tokens, true)) {
|
if (in_array($_COOKIE['oc_token'], $tokens, true)) {
|
||||||
|
|
Loading…
Reference in a new issue