Fix User token
Needs encode string to Base64
This commit is contained in:
parent
629a773dd2
commit
184d22ac81
|
@ -398,7 +398,7 @@
|
|||
<script>
|
||||
const table = new simpleDatatables.DataTable("table")
|
||||
const API_URLS = {
|
||||
Auth_Token: "Basic ZDc5YjQyOGItZTJjMy00NDA0LThhODItNzJjMTNmOWNkYmNjOg==", // {{ current_user.token }}
|
||||
Auth_Token: `Basic ${btoa("{{ current_user.token }}")}`, //
|
||||
currentUserID: "{{ current_user.id }}",
|
||||
lots: "{{ url_for('Lot.main') }}",
|
||||
devices: "{{ url_for('Device.main') }}",
|
||||
|
|
Reference in a new issue