]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/login.php
Sensitive-test _is_ done in index.php
[quix0rs-gnu-social.git] / actions / login.php
index 16016f29ec3a82d6d3811d4113f11f15dfcc3b96..9c16ad2a0790de9f5b0cc447846c88a8d26792e0 100644 (file)
@@ -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
      *