aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-14 14:47:13 +0200
committerMichał Górny <mgorny@gentoo.org>2013-08-14 14:47:13 +0200
commite15f7e66fed702542b9802393ded4bdc30889b52 (patch)
tree266709054117f502eeacda74d6986d82d242c833 /okupy/accounts/forms.py
parentMerge pull request #60 from tampakrap/discoverrunner (diff)
downloadidentity.gentoo.org-e15f7e66fed702542b9802393ded4bdc30889b52.tar.gz
identity.gentoo.org-e15f7e66fed702542b9802393ded4bdc30889b52.tar.bz2
identity.gentoo.org-e15f7e66fed702542b9802393ded4bdc30889b52.zip
OpenID: add 'auto logout' option.
That is, make it possible to automatically logout after sending OpenID response.
Diffstat (limited to 'okupy/accounts/forms.py')
-rw-r--r--okupy/accounts/forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/okupy/accounts/forms.py b/okupy/accounts/forms.py
index a27ccb5..29c0248 100644
--- a/okupy/accounts/forms.py
+++ b/okupy/accounts/forms.py
@@ -11,6 +11,11 @@ class LoginForm(forms.Form):
label='Password:')
+class OpenIDLoginForm(LoginForm):
+ auto_logout = forms.BooleanField(required=False,
+ label='Log out after answering the OpenID request')
+
+
class SSLCertLoginForm(forms.Form):
session_id = forms.CharField(max_length=200, widget=forms.HiddenInput())
next = forms.CharField(max_length=254, widget=forms.HiddenInput())