hide kerberos tab on login page if we did not log out recently (fixes #5407)

Kerberos login should be automatic most of the time.
This commit is contained in:
Benjamin Dauvergne 2016-02-25 16:04:40 +01:00
parent bf9e563319
commit 890e9fd7dc
1 changed files with 3 additions and 0 deletions

View File

@ -21,3 +21,6 @@ class KerberosFrontend(object):
def template(self):
return 'authentic2_auth_kerberos/login.html'
def is_hidden(self, request):
return 'a2_just_logged_out' not in request.COOKIES