Reset all tokens on login
[lhc/web/wiklou.git] / includes / user / User.php
index 70adc32..ff3171e 100644 (file)
@@ -3904,6 +3904,7 @@ class User implements IDBAccessObject {
                        $session->setLoggedOutTimestamp( time() );
                        $session->setUser( new User );
                        $session->set( 'wsUserID', 0 ); // Other code expects this
+                       $session->resetAllTokens();
                        ScopedCallback::consume( $delay );
                        $error = false;
                }