From d6423bbbc82204cb7f64068eb541bcba1f7f2740 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 8 Mar 2015 19:17:01 +0100 Subject: [PATCH] Sensitive-test _is_ done in index.php --- actions/login.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/actions/login.php b/actions/login.php index 16016f29ec..9c16ad2a07 100644 --- a/actions/login.php +++ b/actions/login.php @@ -36,24 +36,6 @@ class LoginAction extends FormAction { protected $needLogin = false; - /** - * Prepare page to run - * - * - * @param $args - * @return string title - */ - protected function prepare(array $args=array()) - { - // @todo this check should really be in index.php for all sensitive actions - $ssl = common_config('site', 'ssl'); - if (empty($_SERVER['HTTPS']) && ($ssl == 'always' || $ssl == 'sometimes')) { - common_redirect(common_local_url('login')); - } - - return parent::prepare($args); - } - /** * Handle input, produce output * -- 2.39.2