changeset 12243 | a46fb3f58ea2 |
parent 12224 | 5c066dc7307b |
child 12371 | 923f9c9f56c5 |
--- a/cubicweb/pyramid/auth.py Thu Nov 30 11:55:35 2017 +0100 +++ b/cubicweb/pyramid/auth.py Fri Dec 01 11:12:09 2017 +0100 @@ -198,7 +198,8 @@ session_prefix + 'secret', 'notsosecret') persistent_secret = settings.get( persistent_prefix + 'secret', 'notsosecret') - if 'notsosecret' in (session_secret, persistent_secret): + if ('notsosecret' in (session_secret, persistent_secret) + and config.registry['cubicweb.config'].mode != 'test'): warnings.warn(''' !! SECURITY WARNING !!