DEV: Submit forms via `type=submit` button, not explicit form action (#8368)
This commit is contained in:
parent
3650c64bca
commit
172832f353
|
@ -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"
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue