added demo quick-login support

This commit is contained in:
Dennis
2021-08-25 09:19:10 +02:00
parent 99968e57ec
commit 27079928a7
2 changed files with 9 additions and 1 deletions

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -80,6 +80,14 @@ export default {
},
}
},
mounted() {
if (window.location.search.includes('demo=')) {
this.form.email = 'demo@ploi-core.io';
this.form.password = 'secret';
}
},
methods: {
submit() {
this.$inertia.post(this.route('login'), {