From 6d46dc26c7ec281771ae4be01b9d9ba88143186d Mon Sep 17 00:00:00 2001 From: Chris Raible Date: Wed, 21 Aug 2024 15:49:52 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20Fixed=20admin=20forms=20defaulti?= =?UTF-8?q?ng=20to=20GET=20method=20(#20810)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref https://linear.app/tryghost/issue/ENG-1497/admin-signin-signup-and-setup-forms-default-to-get - If method is not specified, the form will default to GET, which is incorrect - This commit sets the method to POST and action to javascript:void(0) to prevent the form from submitting via GET if JavaScript is disabled or not fully loaded yet --- ghost/admin/app/templates/setup.hbs | 2 +- ghost/admin/app/templates/signin.hbs | 2 +- ghost/admin/app/templates/signup.hbs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/templates/setup.hbs b/ghost/admin/app/templates/setup.hbs index 5110340e81..db40583602 100644 --- a/ghost/admin/app/templates/setup.hbs +++ b/ghost/admin/app/templates/setup.hbs @@ -6,7 +6,7 @@

All over the world, people have started 3,000,000+ incredible sites with Ghost. Today, we’re starting yours.

-
+ diff --git a/ghost/admin/app/templates/signin.hbs b/ghost/admin/app/templates/signin.hbs index fdaffa1e9d..2a3d5e2741 100644 --- a/ghost/admin/app/templates/signin.hbs +++ b/ghost/admin/app/templates/signin.hbs @@ -12,7 +12,7 @@ {{else}} - +

{{this.config.blogTitle}}

diff --git a/ghost/admin/app/templates/signup.hbs b/ghost/admin/app/templates/signup.hbs index 252ad4a758..c6996c8922 100644 --- a/ghost/admin/app/templates/signup.hbs +++ b/ghost/admin/app/templates/signup.hbs @@ -7,7 +7,7 @@

Create your account.

- +