Skip to content

Commit 1122624

Browse files
committed
add method to forms
1 parent ba8c79a commit 1122624

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

resources/js/components/delete-user.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function DeleteUser() {
4949
Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password
5050
to confirm you would like to permanently delete your account.
5151
</DialogDescription>
52-
<form className="space-y-6" onSubmit={deleteUser}>
52+
<form method="POST" className="space-y-6" onSubmit={deleteUser}>
5353
<div className="grid gap-2">
5454
<Label htmlFor="password" className="sr-only">
5555
Password

resources/js/pages/auth/confirm-password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function ConfirmPassword() {
2929
>
3030
<Head title="Confirm password" />
3131

32-
<form onSubmit={submit}>
32+
<form method="POST" onSubmit={submit}>
3333
<div className="space-y-6">
3434
<div className="grid gap-2">
3535
<Label htmlFor="password">Password</Label>

resources/js/pages/auth/forgot-password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function ForgotPassword({ status }: { status?: string }) {
2828
{status && <div className="mb-4 text-center text-sm font-medium text-green-600">{status}</div>}
2929

3030
<div className="space-y-6">
31-
<form onSubmit={submit}>
31+
<form method="POST" onSubmit={submit}>
3232
<div className="grid gap-2">
3333
<Label htmlFor="email">Email address</Label>
3434
<Input

resources/js/pages/auth/login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function Login({ status, canResetPassword }: LoginProps) {
3939
<AuthLayout title="Log in to your account" description="Enter your email and password below to log in">
4040
<Head title="Log in" />
4141

42-
<form className="flex flex-col gap-6" onSubmit={submit}>
42+
<form method="POST" className="flex flex-col gap-6" onSubmit={submit}>
4343
<div className="grid gap-6">
4444
<div className="grid gap-2">
4545
<Label htmlFor="email">Email address</Label>

resources/js/pages/auth/register.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function Register() {
3434
return (
3535
<AuthLayout title="Create an account" description="Enter your details below to create your account">
3636
<Head title="Register" />
37-
<form className="flex flex-col gap-6" onSubmit={submit}>
37+
<form method="POST" className="flex flex-col gap-6" onSubmit={submit}>
3838
<div className="grid gap-6">
3939
<div className="grid gap-2">
4040
<Label htmlFor="name">Name</Label>

resources/js/pages/auth/reset-password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function ResetPassword({ token, email }: ResetPasswordProps) {
3939
<AuthLayout title="Reset password" description="Please enter your new password below">
4040
<Head title="Reset password" />
4141

42-
<form onSubmit={submit}>
42+
<form method="POST" onSubmit={submit}>
4343
<div className="grid gap-6">
4444
<div className="grid gap-2">
4545
<Label htmlFor="email">Email</Label>

resources/js/pages/settings/password.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function Password() {
5656
<div className="space-y-6">
5757
<HeadingSmall title="Update password" description="Ensure your account is using a long, random password to stay secure" />
5858

59-
<form onSubmit={updatePassword} className="space-y-6">
59+
<form method="POST" onSubmit={updatePassword} className="space-y-6">
6060
<div className="grid gap-2">
6161
<Label htmlFor="current_password">Current password</Label>
6262

0 commit comments

Comments
 (0)