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
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 50s
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user