2021-10-07 21:37:02 -07:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
{{ $ts.processing }}
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
2021-11-11 09:02:25 -08:00
|
|
|
import * as os from '@/os';
|
|
|
|
import * as symbols from '@/symbols';
|
|
|
|
import { login } from '@/account';
|
2021-10-07 21:37:02 -07:00
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
code: {
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
[symbols.PAGE_INFO]: {
|
|
|
|
title: this.$ts.signup,
|
|
|
|
icon: 'fas fa-user'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2021-12-22 05:38:42 -08:00
|
|
|
async mounted() {
|
|
|
|
await os.alert({
|
|
|
|
type: 'info',
|
|
|
|
text: this.$t('clickToFinishEmailVerification', { ok: this.$ts.gotIt }),
|
|
|
|
});
|
|
|
|
const res = await os.apiWithDialog('signup-pending', {
|
2021-10-07 21:37:02 -07:00
|
|
|
code: this.code,
|
|
|
|
});
|
2021-12-22 05:38:42 -08:00
|
|
|
login(res.i, '/');
|
2021-10-07 21:37:02 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|