(bug 40541) Fixed $wgSecureLogin functionality.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Thu, 27 Sep 2012 18:34:11 +0000 (14:34 -0400)
committerTyler Anthony Romeo <tylerromeo@gmail.com>
Thu, 27 Sep 2012 18:34:11 +0000 (14:34 -0400)
commit565014a8cb578889de1666256d1dba6a7ecc8629
treeeea0ea8456e817349b44b6a12e8cf4cf8f2637b1
parent0a1e291036fac2376b4645f9d070bc3e76ca73d4
(bug 40541) Fixed $wgSecureLogin functionality.

* Added parameter to login link so that wpStickHTTPS
  is set to true by default when the user is coming
  from HTTPS.
* Added redirect in Special:Userlogin so that when
  $wgSecureLogin is enabled it automatically redirects
  to HTTPS.
* Adjusted User::setCookies() to add a parameter for
  forcing secure/insecure cookies, and then added the
  appropriate argument to Special:Userlogin so that
  cookies are set appropriately.

Change-Id: I17ac68014840daa47bfd4768e978e9ff2edb00db
includes/SkinTemplate.php
includes/User.php
includes/specials/SpecialUserlogin.php