Commits

Guillaume Esquevin  committed c5d440b

Fixed remember me, used to remember for hours instead of days

  • Participants
  • Parent commits 7dd0b3b

Comments (0)

Files changed (1)

File userena/views.py

             if user.is_active:
                 login(request, user)
                 if remember_me:
-                    request.session.set_expiry(userena_settings.USERENA_REMEMBER_ME_DAYS[1] * 3600)
+                    request.session.set_expiry(userena_settings.USERENA_REMEMBER_ME_DAYS[1] * 86400)
                 else: request.session.set_expiry(0)
 
                 if userena_settings.USERENA_USE_MESSAGES: