示例#1
0
文件: app.py 项目: jonasekl/Notable
def content(uid):
    password = bottle.request.forms.get("password")
    content = db.get_content(uid, password)
    if smells_encrypted(content):
        bottle.response.status = 403
        return "Nope, try again"
    return content
示例#2
0
文件: app.py 项目: jonasekl/Notable
def decrypt():
    password = bottle.request.forms.get("password")
    uid = bottle.request.forms.get("uid")
    return db.get_content(uid, password)