Fix cookie name (nc_token instead of oc_token)

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2017-02-16 16:27:20 +01:00
parent 8296f1a35b
commit c6071e027c
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

View file

@ -98,7 +98,7 @@ class LoginController extends Controller {
* @return RedirectResponse
*/
public function logout() {
$loginToken = $this->request->getCookie('oc_token');
$loginToken = $this->request->getCookie('nc_token');
if (!is_null($loginToken)) {
$this->config->deleteUserValue($this->userSession->getUser()->getUID(), 'login_token', $loginToken);
}