__init__.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Alexandria 作者: indrora 项目源码 文件源码
def sign_auth_path(next_path):
    """returns a URL-safe signed next_path"""
    # next_path must start with a /
    if not next_path.startswith('/'):
        abort(503)
    # sign the next_path
    notary = itsdangerous.URLSafeSerializer(app.secret_key)
    next_path_signed = notary.dumps(next_path)
    return url_for('authenticate', next=next_path_signed)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号