This commit is contained in:
2023-12-03 15:04:10 +05:00
parent 21aab6ca7d
commit b4521e6f24
3 changed files with 13 additions and 3 deletions

View File

@@ -49,7 +49,13 @@
{{ __('Verification code') }}
</label>
<input class="form-control form-input form-input-bordered w-full" id="verification" type="text" name="verification">
<input
class="form-control form-input form-input-bordered w-full"
id="verification"
type="text"
name="verification"
value=""
>
<span id="verification-error-box" class="text-red-500 text-italic error-box"></span>
</div>
@@ -87,6 +93,7 @@ async function resetPassword(event) {
const response = await postData(event.target.action, getFormData(event))
if (response.errors) {
console.log(response.errors);
loopObject(response.errors, item => addValidationClasses(item))
} else {
removeValidationClasess()