rudeshark.net/packages/client/src/pages/verify-email.vue

37 lines
699 B
Vue
Raw Normal View History

<template>
<div>
{{ i18n.ts.processing }}
</div>
</template>
<script lang="ts" setup>
import { onMounted } from "vue";
import * as os from "@/os";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
const props = defineProps<{
code: string;
}>();
onMounted(async () => {
await os.alert({
type: "info",
text: i18n.t("clickToFinishEmailVerification", { ok: i18n.ts.gotIt }),
});
2023-04-27 05:03:04 +02:00
await os.api("verify-email", {
code: props.code,
});
2023-04-27 05:03:04 +02:00
window.location.href = "/";
});
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({
title: "Verify email",
icon: "ph-user ph-bold ph-lg",
});
</script>