better config / install from cli / allow_registration

This commit is contained in:
lesion
2019-06-21 23:52:18 +02:00
parent 4c3c7ee324
commit cf81a73f2f
38 changed files with 530 additions and 272 deletions

View File

@@ -22,7 +22,7 @@
</template>
<script>
import { mapActions } from 'vuex'
import { mapActions, mapState } from 'vuex'
import { Message } from 'element-ui'
import get from 'lodash/get'
@@ -34,7 +34,11 @@ export default {
user: { }
}
},
validate ({store}) {
return store.state.settings.allow_registration
},
computed: {
...mapState(['settings']),
disabled () {
if (process.server) return false
return !this.user.password || !this.user.email || !this.user.description