Register account with email and password
This commit is contained in:
parent
d4eba6a026
commit
c040a5077a
11 changed files with 236 additions and 9 deletions
|
@ -1,10 +1,10 @@
|
|||
<template>
|
||||
<form class="box" @submit.prevent="">
|
||||
<form class="box" @submit.prevent="doSignup">
|
||||
<b-field label="E-Mail-Adresse">
|
||||
<b-input type="email" icon="user" ref="email" />
|
||||
<b-input type="email" v-model="user.email" />
|
||||
</b-field>
|
||||
<b-field label="Kennwort">
|
||||
<b-input type="password" icon="key" />
|
||||
<b-input type="password" v-model="user.password" />
|
||||
</b-field>
|
||||
|
||||
<div v-if="false" class="notification is-danger">
|
||||
|
@ -25,7 +25,14 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from "vue-property-decorator";
|
||||
import { User } from "@/api";
|
||||
|
||||
@Component
|
||||
export default class LoginForm extends Vue {}
|
||||
export default class LoginForm extends Vue {
|
||||
private user = new User("", "");
|
||||
|
||||
private async doSignup() {
|
||||
await this.user.signup();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Reference in a new issue