Manual:$wgSecureLogin

Details
Whether to let user authenticate using https when they come from http. Based on an idea by George Herbert on wikitech-l: http://lists.wikimedia.org/pipermail/wikitech-l/2010-October/050065.html