Add a super basic TOS and privacy policy

This commit is contained in:
Joseph Schorr 2013-10-01 17:44:13 -04:00
parent d15e1bb651
commit f5798b4364
5 changed files with 86 additions and 2 deletions

View file

@ -38,6 +38,16 @@ def index():
return send_file('templates/index.html')
@app.route('/tos', methods=['GET'])
def tos():
return send_file('templates/tos.html')
@app.route('/privacy', methods=['GET'])
def privacy():
return send_file('templates/privacy.html')
def common_login(db_user):
if login_user(_LoginWrappedDBUser(db_user)):
logger.debug('Successfully signed in as: %s' % db_user.username)