Revert "ENHANCEMENT Add config var to skip confirm logout (#7977)"

This reverts commit 47bcac930d.
This commit is contained in:
Daniel Hensby 2018-04-04 13:51:18 +01:00
parent 5ff6874dbc
commit 70effc7046
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -37,11 +37,6 @@ class LogoutHandler extends RequestHandler
'LogoutForm'
];
/**
* @config
* @var bool
*/
private static $confirm_logout = true;
/**
* Log out form handler method
@ -59,7 +54,7 @@ class LogoutHandler extends RequestHandler
// If the user doesn't have a security token, show them a form where they can get one.
// This protects against nuisance CSRF attacks to log out users.
if ($member && self::config()->get('confirm_logout') && !SecurityToken::inst()->checkRequest($this->getRequest())) {
if ($member && !SecurityToken::inst()->checkRequest($this->getRequest())) {
Security::singleton()->setSessionMessage(
_t(
'SilverStripe\\Security\\Security.CONFIRMLOGOUT',