Add default properties for the password reset form skip button
authorGergő Tisza <gtisza@wikimedia.org>
Thu, 9 Jun 2016 17:46:41 +0000 (17:46 +0000)
committerGergő Tisza <gtisza@wikimedia.org>
Thu, 9 Jun 2016 17:48:37 +0000 (17:48 +0000)
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

index 8dff163..d8f5e66 100644 (file)
@@ -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'] += [