added a warning message to the log when a cookie is rejected

This commit is contained in:
Michael Göhler 2012-10-11 14:12:19 +02:00
parent 382f8d060c
commit d8fe6fbb40

View file

@ -556,6 +556,7 @@ class OC{
// or you are an attacker
// we can not delete tokens here because users may reach
// this point multible times after a password change
OC_Log::write('core', 'Authentication cookie rejected for user '.$_COOKIE['oc_username'], OC_Log::WARN);
OC_User::unsetMagicInCookie();
}
OC_User::unsetMagicInCookie();