This repository has been archived on 2022-05-05. You can view files and clone it, but cannot push or open issues or pull requests.
userausfall/src/views/Home.vue

36 lines
988 B
Vue
Raw Normal View History

2021-04-13 09:06:28 +02:00
<template>
2021-04-13 11:01:50 +02:00
<section class="container">
<div class="columns is-centered">
2021-04-15 09:31:03 +02:00
<div class="column is-3-widescreen is-4-desktop is-5-tablet">
<b-notification
v-if="isConfirmation"
type="is-success"
aria-close-label="Close notification"
>
Deine E-Mail-Adresse wurde erfolgreich bestätigt. Du kannst dich nun
anmelden.
</b-notification>
2021-04-13 11:01:50 +02:00
<LoginForm />
</div>
</div>
</section>
2021-04-13 09:06:28 +02:00
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
2021-04-13 11:01:50 +02:00
import LoginForm from "@/components/LoginForm.vue";
2021-04-15 09:31:03 +02:00
import { User } from "@/api";
2021-04-13 09:06:28 +02:00
2021-04-13 11:01:50 +02:00
@Component({ components: { LoginForm } })
2021-04-15 09:31:03 +02:00
export default class Home extends Vue {
private isConfirmation = false;
private async created() {
if (this.$route.name === "Confirm") this.isConfirmation = true;
if (this.isConfirmation) {
await User.confirm(this.$route.params.uid, this.$route.params.token);
}
}
}
2021-04-13 09:06:28 +02:00
</script>