added web interface
This commit is contained in:
1 parent
821ca31cf1
commit
3bff581f23
14 files changed
+298
-64
No files matched your search
@@ -0,0 +1,13 @@
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
if (localStorage.getItem('token')) {
|
||||
fetch(routes.access(), {
|
||||
method: 'POST',
|
||||
body: `{"token": "${localStorage.getItem('token')}"}`
|
||||
}).then(data => data.json()).then(jsondata => {
|
||||
if (jsondata.access === "success") {
|
||||
document.querySelector('.loginform').classList.remove('active')
|
||||
get_all_users()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user