Mercurial > templog
diff web/secure.py @ 489:46e327c00246
gets current params
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 11 Feb 2014 22:10:32 +0800 |
parents | 4792e9910cde |
children | 4fa8cbf31065 |
line wrap: on
line diff
--- a/web/secure.py Sun Feb 09 11:41:13 2014 +0800 +++ b/web/secure.py Tue Feb 11 22:10:32 2014 +0800 @@ -15,7 +15,8 @@ HASH=hashlib.sha1 def get_user_hash(): - if bottle.request.environ.get('SSL_CLIENT_VERIFY', '') != 'GENEROUS': + verify = bottle.request.environ.get('SSL_CLIENT_VERIFY', '') + if not (verify == 'GENEROUS' or verify == 'SUCCESS'): return 'FAILVERIFY' blob = bottle.request.environ.get('SSL_CLIENT_CERT') if not blob: