Finish auth migration, now to make it work
This commit is contained in:
parent
3b553beac6
commit
75ba2eac39
13 changed files with 375 additions and 384 deletions
|
@ -1,5 +1,8 @@
|
|||
import Vue from 'vue';
|
||||
import LoginForm from "./LoginForm";
|
||||
import ForgotPassword from "./ForgotPassword";
|
||||
import TwoFactorForm from "./TwoFactorForm";
|
||||
import Flash from "../Flash";
|
||||
|
||||
export default Vue.component('login', {
|
||||
data: function () {
|
||||
|
@ -10,7 +13,10 @@ export default Vue.component('login', {
|
|||
};
|
||||
},
|
||||
components: {
|
||||
Flash,
|
||||
LoginForm,
|
||||
ForgotPassword,
|
||||
TwoFactorForm,
|
||||
},
|
||||
methods: {
|
||||
onUpdateEmail: function (value: string) {
|
||||
|
@ -19,18 +25,18 @@ export default Vue.component('login', {
|
|||
},
|
||||
template: `
|
||||
<div>
|
||||
<!--<flash container="mb-2"/>-->
|
||||
<flash container="mb-2"/>
|
||||
<login-form
|
||||
v-if="this.$route.name === 'login'"
|
||||
v-bind:user="user"
|
||||
v-on:update-email="onUpdateEmail"
|
||||
/>
|
||||
<!--<forgot-password-->
|
||||
<!--v-if="this.$route.name === 'forgot-password'"-->
|
||||
<!--v-bind:email="user.email"-->
|
||||
<!--v-on:update-email="onUpdateEmail"-->
|
||||
<!--/>-->
|
||||
<!--<two-factor-form v-if="this.$route.name === 'checkpoint'" />-->
|
||||
<forgot-password
|
||||
v-if="this.$route.name === 'forgot-password'"
|
||||
v-bind:email="user.email"
|
||||
v-on:update-email="onUpdateEmail"
|
||||
/>
|
||||
<two-factor-form v-if="this.$route.name === 'checkpoint'" />
|
||||
</div>
|
||||
`,
|
||||
});
|
||||
|
|
Reference in a new issue