summaryrefslogtreecommitdiff
path: root/packages/client/src/pages/signup-complete.vue
blob: a10af1a4cc95410f93917a33f99fdfb873bc36cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<div>
	{{ i18n.locale.processing }}
</div>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue';
import * as os from '@/os';
import * as symbols from '@/symbols';
import { login } from '@/account';
import { i18n } from '@/i18n';

const props = defineProps<{
	code: string;
}>();

onMounted(async () => {
	await os.alert({
		type: 'info',
		text: i18n.t('clickToFinishEmailVerification', { ok: i18n.locale.gotIt }),
	});
	const res = await os.apiWithDialog('signup-pending', {
		code: props.code,
	});
	login(res.i, '/');
});

defineExpose({
	[symbols.PAGE_INFO]: {
		title: i18n.locale.signup,
		icon: 'fas fa-user',
	},
});
</script>

<style lang="scss" scoped>

</style>