Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔒 Fixed admin forms defaulting to GET method #20810

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ghost/admin/app/templates/setup.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p>All over the world, people have started 3,000,000+ incredible sites with Ghost. Today, we’re starting yours.</p>
</header>

<form id="setup" class="gh-flow-form">
<form id="setup" method="post" action="javascript:void(0)" class="gh-flow-form">
<GhFormGroup @errors={{this.errors}} @hasValidated={{this.hasValidated}} @property="blogTitle">
<label for="blog-title">Site title</label>
<span class="gh-input-icon gh-icon-content">
Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/app/templates/signin.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</header>
</div>
{{else}}
<form id="login" class="gh-signin" novalidate="novalidate" {{on "submit" (perform this.validateAndAuthenticateTask)}}>
<form id="login" method="post" action="javascript:void(0)" class="gh-signin" novalidate="novalidate" {{on "submit" (perform this.validateAndAuthenticateTask)}}>
<header>
<div class="gh-site-icon" style={{site-icon-style}}></div>
<h1>{{this.config.blogTitle}}</h1>
Expand Down
2 changes: 1 addition & 1 deletion ghost/admin/app/templates/signup.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h1>Create your account.</h1>
</header>

<form id="signup" class="gh-signup" novalidate="novalidate" {{on "submit" this.submit}}>
<form id="signup" method="post" action="javascript:void(0)" class="gh-signup" novalidate="novalidate" {{on "submit" this.submit}}>
<GhFormGroup @errors={{this.signupDetails.errors}} @hasValidated={{this.signupDetails.hasValidated}} @property="name">
<label for="name">Full name</label>
<span class="gh-input-icon gh-icon-user">
Expand Down
Loading