コード例 #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)