fix: login redirect to index.ui instead of userinfo.ui
After login success, redirect to the main page (/index.ui) instead of just loading userinfo.ui into user_container. This fixes the white screen after login.
This commit is contained in:
parent
587241b6a9
commit
f6027788b2
@ -94,24 +94,17 @@ async with db.sqlorContext(dbname) as sor:
|
|||||||
"wid":"self",
|
"wid":"self",
|
||||||
"event":"dismissed",
|
"event":"dismissed",
|
||||||
"actiontype":"urlwidget",
|
"actiontype":"urlwidget",
|
||||||
"target":"window.user_container",
|
"target":"window",
|
||||||
"options":{
|
"options":{
|
||||||
"url":entire_url('/rbac/user/userinfo.ui')
|
"url":entire_url('/index.ui')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"wid":"self",
|
"wid":"self",
|
||||||
"event":"dismissed",
|
"event":"opened",
|
||||||
"actiontype":"script",
|
"actiontype":"script",
|
||||||
"target": f'body.login_window',
|
"target":"window.login_window",
|
||||||
"script":"this.destroy()"
|
"script":"this.destroy()"
|
||||||
},
|
|
||||||
{
|
|
||||||
"wid":"self",
|
|
||||||
"event":"dismissed",
|
|
||||||
"actiontype":"script",
|
|
||||||
"target":"self",
|
|
||||||
"script":"if(bricks.app && bricks.app.dispatch) bricks.app.dispatch('user_logined')"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user