add login option: stay_logged_in
As proposed in issue #354; it adds an attribute max_age to mediagoblin.tools.session.Session that is passed to response.set_cookie; max_age is set to 30 days if the checkbox is selected
This commit is contained in:
committed by
Rodney Ewing
parent
a4dcb1f46a
commit
527b7e3b57
@@ -41,3 +41,5 @@ class LoginForm(wtforms.Form):
|
||||
normalize_user_or_email_field()])
|
||||
password = wtforms.PasswordField(
|
||||
_('Password'))
|
||||
stay_logged_in = wtforms.BooleanField(
|
||||
_('Stay logged in'))
|
||||
|
||||
Reference in New Issue
Block a user