mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
FIX: Enter key should submit password reset form, not refresh the page
This commit is contained in:
parent
84107c61a7
commit
1c1c3cae85
|
@ -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}}
|
||||
<h2>{{i18n 'user.change_password.choose'}}</h2>
|
||||
|
@ -56,7 +56,7 @@
|
|||
{{d-icon "exclamation-triangle"}} {{i18n 'login.caps_lock_warning'}}</div>
|
||||
</div>
|
||||
|
||||
{{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}}
|
||||
</form>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user