From e7945edb0f07c7ce38d3e092615d5c093fd740e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Thu, 9 Jun 2016 17:46:41 +0000 Subject: [PATCH] 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 --- includes/specialpage/LoginSignupSpecialPage.php | 5 +++++ 1 file changed, 5 insertions(+) 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'] += [ -- 2.20.1