pyramid_cubicweb/login.py
changeset 11527 aa05b41a5816
parent 11509 ca3412269cd1
child 11537 caf268942436
--- a/pyramid_cubicweb/login.py	Sat Nov 15 21:07:25 2014 +0100
+++ b/pyramid_cubicweb/login.py	Mon Dec 08 20:21:55 2014 +0100
@@ -35,7 +35,7 @@
 
     max_age = None
     if request.params.get('__setauthcookie') == '1':
-        max_age = '604800'
+        max_age = 604800
     headers = security.remember(request, user_eid, max_age=max_age)
 
     new_path = request.params.get('postlogin_path', '/')