Found and fixed #1571

This commit is contained in:
James Cole
2018-07-28 10:03:47 +02:00
parent 719d610be3
commit d35470a79e
5 changed files with 8 additions and 5 deletions

2
public/css/app.css vendored

File diff suppressed because one or more lines are too long

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -288,7 +288,7 @@
*/
store() {
this.persistClient(
'post', './oauth/clients',
'post', './oauth/clients' + '?_token=' + window.Laravel,
this.createForm, '#modal-create-client'
);
},
@@ -309,7 +309,7 @@
*/
update() {
this.persistClient(
'put', './oauth/clients/' + this.editForm.id,
'put', './oauth/clients/' + this.editForm.id + '?_token=' + window.Laravel,
this.editForm, '#modal-edit-client'
);
},

View File

@@ -238,7 +238,7 @@
this.form.errors = [];
axios.post('./oauth/personal-access-tokens', this.form)
axios.post('./oauth/personal-access-tokens?_token=' + window.Laravel, this.form)
.then(response => {
this.form.name = '';
this.form.scopes = [];

View File

@@ -156,6 +156,9 @@
</div>
</div>
</div>
<script type="text/javascript">
window.Laravel = "{{ csrf_token() }}";
</script>
<script src="js/lib/moment.min.js?v={{ FF_VERSION }}" type="text/javascript"></script>
<script src="js/ff/moment/{{ language }}.js?v={{ FF_VERSION }}" type="text/javascript"></script>
<script src="{{ route('javascript.variables') }}?ext=.js&amp;v={{ FF_VERSION }}{% if account %}&amp;account={{ account.id }}{% endif %}" type="text/javascript"></script>