From: Gergő Tisza Date: Thu, 9 Jun 2016 17:46:41 +0000 (+0000) Subject: Add default properties for the password reset form skip button X-Git-Tag: 1.31.0-rc.0~6669^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=e7945edb0f07c7ce38d3e092615d5c093fd740e9;p=lhc%2Fweb%2Fwiklou.git Add default properties for the password reset form skip button Make "skip" the last option (so it's not the default action when the user presses enter in a text field) and do not mark it as primary/constructive as there shouldn't be multiple such buttons. Bug: T136894 Change-Id: I2a8cd4850f740240520732b1b54d7876f25a00b8 --- diff --git a/includes/specialpage/LoginSignupSpecialPage.php b/includes/specialpage/LoginSignupSpecialPage.php index 8dff1632b5..d8f5e6697d 100644 --- a/includes/specialpage/LoginSignupSpecialPage.php +++ b/includes/specialpage/LoginSignupSpecialPage.php @@ -1050,6 +1050,11 @@ abstract class LoginSignupSpecialPage extends AuthManagerSpecialPage { ], $this->msg( 'userlogin-helplink2' )->text() ), 'weight' => 200, ], + // button for ResetPasswordSecondaryAuthenticationProvider + 'skipReset' => [ + 'weight' => 110, + 'flags' => [], + ], ]; } $fieldDefinitions['username'] += [