Mercurial > templog
comparison web/templog.py @ 211:59379b2bd056
key fingerprints are case- and whitespace-insensitive.
add some comments
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 26 Jun 2014 23:02:23 +0800 |
parents | 6dd157a12035 |
children | 88dfac30d065 |
comparison
equal
deleted
inserted
replaced
210:3f403e22c2e3 | 211:59379b2bd056 |
---|---|
66 | 66 |
67 return "Good" | 67 return "Good" |
68 | 68 |
69 @route('/set') | 69 @route('/set') |
70 def set(): | 70 def set(): |
71 allowed = ["false", "true"][secure.get_user_hash() in config.ALLOWED_USERS] | 71 allowed = ["false", "true"][secure.check_user_hash(config.ALLOWED_USERS)] |
72 response.set_header('Cache-Control', 'no-cache') | 72 response.set_header('Cache-Control', 'no-cache') |
73 return bottle.template('set', | 73 return bottle.template('set', |
74 inline_data = log.get_params(), | 74 inline_data = log.get_params(), |
75 csrf_blob = secure.get_csrf_blob(), | 75 csrf_blob = secure.get_csrf_blob(), |
76 allowed = allowed) | 76 allowed = allowed) |