forgot a class name

This commit is contained in:
Michael Göhler 2012-10-11 12:30:43 +02:00
parent 2ea06f67bd
commit eb79ccafe3

View file

@ -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)) {