Login form use method="POST" to prevent uri exposure when javascript fails

This commit is contained in:
the-djmaze 2024-01-09 15:56:35 +01:00
parent 2a3cea63cc
commit 6b3f76e4ee
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<a href="#" class="close" data-bind="click: hideError">×</a>
<span data-bind="text: submitError"></span>
</div>
<form action="#/" spellcheck="false" data-bind="submit: submitForm, css: {'errorAnimated': formError, 'submitting': submitRequest()}">
<form action="#/" spellcheck="false" method="POST" data-bind="submit: submitForm, css: {'errorAnimated': formError, 'submitting': submitRequest()}">
<div class="controls" data-bind="css: {'error': loginError}">
<span class="fontastic">👤</span>
<input name="Login" required="" type="text" class="input-block-level"

View file

@ -7,7 +7,7 @@
<!-- ko text: submitErrorAdditional --><!-- /ko -->
</p>
</div>
<form action="#/" spellcheck="false"
<form action="#/" spellcheck="false" method="POST"
data-bind="submit: submitForm, css: {'errorAnimated': formError, 'submitting': submitRequest()}">
<div class="controls" data-bind="css: {'error': emailError}">
<span class="fontastic"></span>