From: Aaron Schulz Date: Sun, 28 Dec 2008 11:50:33 +0000 (+0000) Subject: (bug 16721) Reset auth token to stop auto-login. Auto-login defeats the user rename... X-Git-Tag: 1.31.0-rc.0~43727 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=84ab744191c6bdde7b7fb04166958428825eb45e;p=lhc%2Fweb%2Fwiklou.git (bug 16721) Reset auth token to stop auto-login. Auto-login defeats the user rename/touch change to break the login since the user can just get logged in again under the old name without noticing, which results in edits under the old name. --- diff --git a/includes/AuthPlugin.php b/includes/AuthPlugin.php index 7c9b339764..b29e13f279 100644 --- a/includes/AuthPlugin.php +++ b/includes/AuthPlugin.php @@ -258,4 +258,9 @@ class AuthPluginUser { # Override this! return false; } + + public function resetAuthToken() { + # Override this! + return true; + } }