fixed css

This commit is contained in:
STEINNI
2025-09-18 17:55:05 +00:00
parent 190d8df334
commit b5f0fb0c5d
13 changed files with 276 additions and 98 deletions
+8 -3
View File
@@ -126,6 +126,8 @@ class myUser extends app.LoadedClasses.User {
} else {
console.log('authenticated!')
this.isAuthenticated = true
this.identity = jsonresp.payload.userInfos.identity
this.roles = jsonresp.payload.userInfos.roles
callBack()
}
@@ -136,7 +138,7 @@ class myUser extends app.LoadedClasses.User {
*
* @returns {string}
*/
getMessageBusUserInfo() { return(this.identity.uuid) }
getMessageBusUserInfo() { return(this.identity.username) }
async login(){
const response = await fetch(app.config.userLib.loginEndpoint+'?'+crypto.randomUUID(), {
@@ -154,7 +156,8 @@ class myUser extends app.LoadedClasses.User {
if(jsonresp && jsonresp.success && jsonresp.payload){
if(jsonresp.payload.authenticated){
this.isAuthenticated = true
this.userInfos = jsonresp.payload.userInfos
this.identity = jsonresp.payload.userInfos.identity
this.roles = jsonresp.payload.userInfos.roles
return(true)
} else {
document.querySelector('div.loginerr').classList.add('show')
@@ -172,7 +175,7 @@ class myUser extends app.LoadedClasses.User {
}
}
this.isAuthenticated = false
this.userInfos = null
this.identity = null
return(false)
}
@@ -260,6 +263,8 @@ class myUser extends app.LoadedClasses.User {
setPreference(path, value) {
if(app.MessageBus) {
let segments = path.split('.');
console.log('=====>',this, this.preferences)
let pointer = this.preferences;
for(let i = 0; i < segments.length - 1; i++) {