Skip to main content

UNKNOWN

Project description

rebecca.login

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

INSTALL

$ pip install rebecca.login

USAGE

rebecca.login provides login and logout functions. login requires rebecca.repository.interfaces.IRepository named users.

login returns authenticated headers.

example:

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

Changes

0.1 (2013-11-16)

  • first release

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rebecca.login, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size rebecca.login-0.1-py2.py3-none-any.whl (4.6 kB) File type Wheel Python version 3.3 Upload date Hashes View
Filename, size rebecca.login-0.1.zip (5.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page