Authentication views for Keg
Project description
Base views and forms for user login and password management in Keg applications.
Usage
There are 5 base views to allow users to login, logout and set their passwords.
Login
Logout
ChangePassword
ForgotPassword
ResetPassword
To make use of these views in your application, subclass the appropriate view and it’s contained Responder
class and implement the pure virtual methods.
You may override the templates used for these views by creating the appropriately named template under <my application>/templates/keg-login/
or overriding template
in your Responder
subclass
Example
from keg import Keg
from keg_login.ext import KegLogin
from keg_login import views
app = Keg(__name__)
KegLogin(app)
class ForgotPassword(views.ForgotPassword):
class Responder(views.ForgotPassword.Responder):
def request_password_reset(self, email):
generate_token_and_send_email(email)
Development
Branches & State
master
: our “production” branch
All other branches are feature branches.
Environment
Install requirements:
$ pip install --use-wheel --no-index --find-links=requirements/wheelhouse -r requirements/dev-env.txt
$ pip install -e .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for KegLogin-0.5.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4be4fac92c24a0900130f7ed31d2909139d43bd63da524bd4bb8562b548954b |
|
MD5 | 5be2148d89406aff44ac9a3b75e2a5c7 |
|
BLAKE2b-256 | 893a17da0e9309764f61e922ed635e2461d6a4d3fbc3f0a40cb9d741cb692afd |