Use redirect API call for logging in using UiPassword plugin
This commit is contained in:
parent
c734e13753
commit
0882f9dd3c
1 changed files with 1 additions and 2 deletions
|
@ -124,8 +124,7 @@ class UiWebsocketPlugin(object):
|
||||||
return self.response(to, "You don't have permission to run this command")
|
return self.response(to, "You don't have permission to run this command")
|
||||||
|
|
||||||
session_id = self.request.getCookies().get("session_id", "")
|
session_id = self.request.getCookies().get("session_id", "")
|
||||||
message = "<script>document.location.href = '/Logout?session_id=%s'</script>" % session_id
|
self.cmd("redirect", '/Logout?session_id=%s' % session_id)
|
||||||
self.cmd("notification", ["done", message])
|
|
||||||
|
|
||||||
def addHomepageNotifications(self):
|
def addHomepageNotifications(self):
|
||||||
error_msgs = showPasswordAdvice(config.ui_password)
|
error_msgs = showPasswordAdvice(config.ui_password)
|
||||||
|
|
Loading…
Reference in a new issue