Get things into a somewhat working state on the login form

This commit is contained in:
Dane Everitt 2018-03-31 15:52:11 -05:00
parent 7de2c8684c
commit 791cbaa5ce
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
15 changed files with 450 additions and 132 deletions

View file

@ -0,0 +1,37 @@
<template>
<div>
<login-form
v-if="this.$route.path === '/'"
v-bind:email="email"
v-on:update-email="onEmailUpdate"
/>
<forgot-password
v-if="this.$route.path === '/forgot-password'"
v-bind:email="email"
v-on:update-email="onEmailUpdate"
/>
</div>
</template>
<script>
import LoginForm from "./LoginForm";
import ForgotPassword from "./ForgotPassword";
export default {
name: 'login',
data: function () {
return {
email: '',
};
},
methods: {
onEmailUpdate: function (value) {
this.$data.email = value;
},
},
components: {
ForgotPassword,
LoginForm
},
}
</script>