Fix login popups

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Empty the 2FA cookie on logout as well

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Wipe user's 2FA preferences when using a backup code

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Don't load additional layers when sending a AJAX request to login2

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Add 2FA mode settings to Cookie and Session settings page

Signed-off-by: Shitiz Garg <mail@dragooon.net>
Implement 2FA settings

Signed-off-by: Shitiz Garg <mail@dragooon.net>