Add POST method to LoginForm and RegisterForm components
- Updated the `LoginForm.vue` and `RegisterForm.vue` components to include the `method="POST"` attribute in their form elements. This change ensures that form submissions are handled correctly as POST requests, aligning with standard web practices for user authentication and registration. These modifications aim to enhance the functionality of the authentication forms by explicitly defining the request method for form submissions.
This commit is contained in:
parent
20adfe076f
commit
a43ed866b8
|
|
@ -6,6 +6,7 @@
|
|||
/>
|
||||
|
||||
<form
|
||||
method="POST"
|
||||
class="mt-4"
|
||||
@submit.prevent="login"
|
||||
@keydown="form.onKeydown($event)"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<form
|
||||
method="POST"
|
||||
@submit.prevent="register"
|
||||
@keydown="form.onKeydown($event)"
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue