UNKNOWN
Project description
rebecca.login
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rebecca.login-0.1.zip
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rebecca.login-0.1.zip.
File metadata
- Download URL: rebecca.login-0.1.zip
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
346e8a6f08a39052fc320e063f8087e275529f749b30d3112c810e359620d0a1
|
|
| MD5 |
38107b6b61510fe094b2282c0ca5277f
|
|
| BLAKE2b-256 |
25f4f687e2373599ce6e91708c8fa629e106743ad159eac23082c19de972d782
|
File details
Details for the file rebecca.login-0.1-py2.py3-none-any.whl.
File metadata
- Download URL: rebecca.login-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74cbe199096e06ebb0dffed3ebb80b229eef589f1ef55d847e7f290880d2805c
|
|
| MD5 |
cafaf6a698e0019d07bfe3e98e8889bb
|
|
| BLAKE2b-256 |
d55fe6343805b01ea2269a39aeccd67147989fd26e565266e690ff3ec2ed30da
|