<template>
    
    <login-page 
        :app="app"
    />
</template>

<script>
    export default {
        props: {
            app: {require: true},
        },

        components: {
            LoginPage: require('./../components/LoginPage').default,
        },

        created() {
            this.app.AddClassesByContext(require.context('./../../Classes', true, /\.class.js$/i));
            this.app.AddFormsByContext(require.context('./../../Forms', true, /\.form.js$/i));

            this.app.forms.Login.formprovider.errorsManager.Set(this.app.payload.errors)
        },

        name: 'Index',
    }
</script>