mirror of
https://github.com/discourse/discourse.git
synced 2025-05-05 04:24:41 +08:00
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"}}
|
{{#d-modal-body class="forgot-password-modal"}}
|
||||||
{{#unless offerHelp}}
|
{{#unless offerHelp}}
|
||||||
<label for='username-or-email'>{{i18n 'forgot_password.invite'}}</label>
|
<label for='username-or-email'>{{i18n 'forgot_password.invite'}}</label>
|
||||||
@ -12,7 +12,8 @@
|
|||||||
{{d-button action=(action "resetPassword")
|
{{d-button action=(action "resetPassword")
|
||||||
label="forgot_password.reset"
|
label="forgot_password.reset"
|
||||||
disabled=submitDisabled
|
disabled=submitDisabled
|
||||||
class="btn-primary forgot-password-reset"}}
|
class="btn-primary forgot-password-reset"
|
||||||
|
type='submit'}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{d-button class="btn-large btn-primary"
|
{{d-button class="btn-large btn-primary"
|
||||||
label="forgot_password.button_ok"
|
label="forgot_password.button_ok"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<section class='user-preferences solo-preference second-factor'>
|
<section class='user-preferences solo-preference second-factor'>
|
||||||
{{#conditional-loading-spinner condition=loading}}
|
{{#conditional-loading-spinner condition=loading}}
|
||||||
<form class="form-horizontal" {{action "confirmPassword" on="submit"}}>
|
<form class="form-horizontal">
|
||||||
|
|
||||||
{{#if showEnforcedNotice}}
|
{{#if showEnforcedNotice}}
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user