From 1c1c3cae85986bff5bc82629492f2e08f20f3e8a Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 18 Nov 2019 11:54:41 +0000 Subject: [PATCH] FIX: Enter key should submit password reset form, not refresh the page --- app/assets/javascripts/discourse/templates/password-reset.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/password-reset.hbs b/app/assets/javascripts/discourse/templates/password-reset.hbs index 5599e20864b..c7c83156c5a 100644 --- a/app/assets/javascripts/discourse/templates/password-reset.hbs +++ b/app/assets/javascripts/discourse/templates/password-reset.hbs @@ -41,7 +41,7 @@ {{/second-factor-form}} {{/if}} {{#unless securityKeyRequired }} - {{d-button action=(action "submit") class='btn-primary' label='submit'}} + {{d-button action=(action "submit") class='btn-primary' label='submit' type='submit'}} {{/unless}} {{else}}

{{i18n 'user.change_password.choose'}}

@@ -56,7 +56,7 @@ {{d-icon "exclamation-triangle"}} {{i18n 'login.caps_lock_warning'}} - {{d-button action=(action "submit") class='btn-primary' label='user.change_password.set_password'}} + {{d-button action=(action "submit") class='btn-primary' label='user.change_password.set_password' type='submit'}} {{/if}} {{/if}}