Special:UserLogin: Don't show login button when not required
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Wed, 27 Jul 2016 20:01:43 +0000 (22:01 +0200)
committerAnomie <bjorsch@wikimedia.org>
Mon, 22 Aug 2016 18:46:35 +0000 (18:46 +0000)
commitb1d154f8f078ca8690935206d0449e210e302c48
tree8c32c893907fb38dd279099313cbbcfb691175c0
parent59d6485b0be04fb9330f3f07d790ab851f7a642d
Special:UserLogin: Don't show login button when not required

If no AuthenticationRequest requires a separate login button, it
shouldn'tbe visible. This is, for example, the case, when only
link providers are used, that require the user to redirect to a third
party site, as it usually just shows a single submit button.

In this case, the login button is still visible because of other additional
fields, such as the remember  me button. This change checks each primary
authentication provider, if it provides its provide his own submit
button or not, and if so, removes the login button completely.

Bug: T141471
Change-Id: Ib18a69582cb3f79d438ab009d8755f0d5e415bcb
includes/specialpage/AuthManagerSpecialPage.php
includes/specialpage/LoginSignupSpecialPage.php
includes/specials/SpecialChangeCredentials.php