]> git.proxmox.com Git - pmg-gui.git/commit - js/LoginView.js
improve login/logout/cookie behaviour
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 5 Oct 2017 10:27:59 +0000 (12:27 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 5 Oct 2017 10:51:38 +0000 (12:51 +0200)
commit99bba12c7fee786d0c065732f109063ec5c58a0f
tree0a889d5d2db487ee2a15d67d01aa51fae09665f9
parent13444d537a375f292ec9cec82048f4e9c674209a
improve login/logout/cookie behaviour

this changes the login/logout/cookie behaviour

if you go to /quarantine
    you get to the loginview
    except you have a valid cookie
    or you have a ticket via url (this takes precedence)

    when you have a valid login
you go to the quarantineview
else if you have not a quarantine ticket
    you get to the mainview
else
    you get to the loginview

also adds a logout button to the quarantineview
and moves the viewchange/logout logic to the Application.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/Application.js
js/LoginView.js
js/MainView.js
js/QuarantineList.js
js/QuarantineView.js
js/UserBlackWhiteList.js