Flask app for store user in MongoDB and simple views for login, logout and registration.
Free software: BSD license
Quickstart
Install flask-musers:
pip install flask-musers
In the app you must init the MUsers:
from flask import Flask from flask.ext.musers import MUsers app = Flask(__name__) MUsers(app)
and register flask-musers blueprint:
from flask_musers.views import musers app.register_blueprint(musers)
then must be prepared templates for registration - musers/register.html and login - musers/login.html.
Views has names musers.register, musers.login and musers.logout. They are used in url_for:
from flask import url_for
url_for('musers.register')
url_for('musers.login')
url_for('musers.logout')
Config
MUSERS_ALLOW_REGISTRATIONS - set to False, when you want disable registrations. Default: True
MUSERS_PASSWORD_VALIDATOR - used for custom validator. The dotted name for the object to import. Default: None
History
0.0.1 (2013-09-17)
First release on PyPI.
Metadata
Release files for flask-musers 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flask-musers-0.5.4.tar.gz | 8.1 kB | Without provenance | Details |
Release files / flask-musers-0.5.4.tar.gz
| Download URL | flask-musers-0.5.4.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0037377c3f36dc6ca0d2793105c947729b1617705ed3b1474545c21c75f73697
|
|
BLAKE2b-256 checksum How to use checksums |
13bd065503ed196d34e56f3fcdaa8bdc3eb44994544e40e59710ca7846570afc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for flask-musers 0.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.