Redirect to https for signup
authorcsteipp <csteipp@wikimedia.org>
Fri, 27 Sep 2013 20:39:50 +0000 (13:39 -0700)
committercsteipp <csteipp@wikimedia.org>
Mon, 30 Sep 2013 17:16:15 +0000 (10:16 -0700)
Redirect to https for most user, since they will be sending their
password with their signup request.

GeoIP prevention of the redirect is still respected.

Bug: 53651

Change-Id: I12646fcd268c78fd446c6dbf2ba201eee3846444

includes/specials/SpecialUserlogin.php

index 48bef9d..a68efc4 100644 (file)
@@ -168,10 +168,7 @@ class LoginForm extends SpecialPage {
 
                // If logging in and not on HTTPS, either redirect to it or offer a link.
                global $wgSecureLogin;
-               if (
-                       $this->mType !== 'signup' &&
-                       WebRequest::detectProtocol() !== 'https'
-               ) {
+               if ( WebRequest::detectProtocol() !== 'https' ) {
                        $title = $this->getFullTitle();
                        $query = array(
                                'returnto' => $this->mReturnTo,