fixed css
This commit is contained in:
+8
-3
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user