equal
deleted
inserted
replaced
142 |
142 |
143 Usually called via ``config.include('pyramid_cubicweb.auth')``. |
143 Usually called via ``config.include('pyramid_cubicweb.auth')``. |
144 |
144 |
145 See also :ref:`defaults_module` |
145 See also :ref:`defaults_module` |
146 """ |
146 """ |
147 secret = config.registry['cubicweb.config']['pyramid-session-secret'] |
147 settings = config.registry.settings |
|
148 secret = settings.get('cubicweb.session.secret', '') |
|
149 if not secret: |
|
150 secret = config.registry['cubicweb.config'].get('pyramid-session-secret') |
|
151 warnings.warn(''' |
|
152 Please migrate pyramid-session-secret from |
|
153 all-in-one.conf to cubicweb.session.secret config entry in |
|
154 your pyramid.ini file. |
|
155 ''') |
148 if not secret: |
156 if not secret: |
149 secret = 'notsosecret' |
157 secret = 'notsosecret' |
150 warnings.warn(''' |
158 warnings.warn(''' |
151 |
159 |
152 !! WARNING !! !! WARNING !! |
160 !! WARNING !! !! WARNING !! |
153 |
161 |
154 The session cookies are signed with a static secret key. |
162 The session cookies are signed with a static secret key. |
155 To put your own secret key, edit your all-in-one.conf file |
163 To put your own secret key, edit your pyramid.ini file |
156 and set the 'pyramid-session-secret' key. |
164 and set the 'cubicweb.session.secret' key. |
157 |
165 |
158 YOU SHOULD STOP THIS INSTANCE unless your really know what you |
166 YOU SHOULD STOP THIS INSTANCE unless your really know what you |
159 are doing !! |
167 are doing !! |
160 |
168 |
161 ''') |
169 ''') |