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/components/LoginForm.vue

39 lines
884 B
Vue
Raw Normal View History

2021-04-13 11:01:50 +02:00
<template>
<form class="box" @submit.prevent="doSignup">
2021-04-13 11:01:50 +02:00
<b-field label="E-Mail-Adresse">
<b-input type="email" v-model="user.email" />
2021-04-13 11:01:50 +02:00
</b-field>
<b-field label="Kennwort">
<b-input type="password" v-model="user.password" />
2021-04-13 11:01:50 +02:00
</b-field>
<div v-if="false" class="notification is-danger">
Email or password was wrong.
</div>
<div class="buttons">
<b-button
native-type="submit"
type="is-primary"
style="margin-left: auto; margin-right: 0; order: 10"
>
Konto anlegen
</b-button>
</div>
</form>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { User } from "@/api";
2021-04-13 11:01:50 +02:00
@Component
export default class LoginForm extends Vue {
private user = new User("", "");
private async doSignup() {
await this.user.signup();
}
}
2021-04-13 11:01:50 +02:00
</script>