mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-04-03 14:37:29 +02:00
Improve auth handling of rest apis used in frontend for compatibility
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
let jwt = "";
|
||||
|
||||
function getUserJwt(username) {
|
||||
fetch(`/config/jwt/?username=${username}`)
|
||||
fetch(`/userconfig/jwt/?username=${username}`)
|
||||
.then((res) => res.text())
|
||||
.then((text) => {
|
||||
jwt = text;
|
||||
|
||||
Reference in New Issue
Block a user