跳转到主要内容

未知

项目描述

rebecca.login

https://travis-ci.org/rebeccaframework/rebecca.login.png

安装

$ pip install rebecca.login

使用

rebecca.login 提供了 登录注销 功能。 登录 需要 rebecca.repository.interfaces.IRepository 命名为 users

登录 返回认证的头部。

示例

def login_success(self, values):
    user_name = values['user_name']
    password = values['password']
    authenticated = login(self.request, user_name, password)
    if not authenticated:
        return
    headers = security.remember(self.request, authenticated)
    response = HTTPFound(self.request.route_url('top'))
    response.headerlist.extend(headers)
    return response

变更

0.1 (2013-11-16)

  • 首次发布

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。

源分布

rebecca.login-0.1.zip (5.9 kB 查看哈希值)

上传时间:

构建分布

rebecca.login-0.1-py2.py3-none-any.whl (4.6 kB 查看哈希值)

上传时间: Python 2 Python 3

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面