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>
this is later needed for the spamquarantine, to determine
if we are in the admin view or quarantine view
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
instead of the application, since we want a different default
token for the admin view and the quarantine view
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this is the main application class, which is responsible for loading
the main/login view
also for recentering modal windows
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>