comparison web/templog.py @ 505:ad846b9bdd10

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 236e5d131b3e
children 88dfac30d065
comparison
equal deleted inserted replaced
504:028cf9bc3ee8 505:ad846b9bdd10
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)