feat: normalize email handling in signup, login, and verification processes; refactor event handling in task and reward components
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 50s

This commit is contained in:
2026-01-28 16:42:06 -05:00
parent 3066d7d356
commit 6f5b61de7f
18 changed files with 188 additions and 172 deletions

View File

@@ -9,6 +9,7 @@
:error="errorMsg"
:title="'User Profile'"
@submit="handleSubmit"
@cancel="router.back"
@add-image="onAddImage"
>
<template #custom-field-email="{ modelValue }">
@@ -37,11 +38,11 @@
v-if="showModal"
:title="modalTitle"
:subtitle="modalSubtitle"
@close="handleModalClose"
@close="handlePasswordModalClose"
>
<div class="modal-message">{{ modalMessage }}</div>
<div class="modal-actions" v-if="!resetting">
<button class="btn btn-primary" @click="handleModalClose">OK</button>
<button class="btn btn-primary" @click="handlePasswordModalClose">OK</button>
</div>
</ModalDialog>
</div>
@@ -180,14 +181,8 @@ function handleSubmit(form: {
})
}
async function handleModalClose() {
async function handlePasswordModalClose() {
showModal.value = false
// Log out user and route to auth landing page
try {
await fetch('/api/logout', { method: 'POST' })
} catch {}
// Optionally clear any local auth state here if needed
router.push({ name: 'AuthLanding' })
}
async function resetPassword() {