DEV: Submit forms via `type=submit` button, not explicit form action (#8368)

This commit is contained in:
David Taylor 2019-11-18 13:26:26 +00:00 committed by GitHub
parent 3650c64bca
commit 172832f353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<form {{action "resetPassword" on="submit"}}>
<form>
{{#d-modal-body class="forgot-password-modal"}}
{{#unless offerHelp}}
<label for='username-or-email'>{{i18n 'forgot_password.invite'}}</label>
@ -12,7 +12,8 @@
{{d-button action=(action "resetPassword")
label="forgot_password.reset"
disabled=submitDisabled
class="btn-primary forgot-password-reset"}}
class="btn-primary forgot-password-reset"
type='submit'}}
{{else}}
{{d-button class="btn-large btn-primary"
label="forgot_password.button_ok"

View File

@ -1,6 +1,6 @@
<section class='user-preferences solo-preference second-factor'>
{{#conditional-loading-spinner condition=loading}}
<form class="form-horizontal" {{action "confirmPassword" on="submit"}}>
<form class="form-horizontal">
{{#if showEnforcedNotice}}
<div class="control-group">