Added feature #16439: Use the form protection API to implement the CSRF protection...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_beuserauth.php
index 38d1ef1..847b433 100644 (file)
@@ -391,6 +391,16 @@ class t3lib_beUserAuth extends t3lib_userAuthGroup {
 
                return $isUserAllowedToLogin;
        }
+
+       /**
+        * Logs out the current user and clears the form protection tokens.
+        */
+       public function logoff() {
+               t3lib_formProtection_Factory::get(
+                       't3lib_formprotection_BackendFormProtection'
+               )->clean();
+               parent::logoff();
+       }
 }