/flask_simplelogin

Simple Login - Login Extension for Flask - maintainer @cuducos

Primary LanguagePythonMIT LicenseMIT

Travis PyPI PyPI versions PyPI formats Flask

Login Extension for Flask

The simplest way to add login to flask!

Top Contributors

Add yourself, send a PR!

How it works

First install it from PyPI.

pip install flask_simplelogin

from flask import Flask
from flask_simplelogin import SimpleLogin

app = Flask(__name__)
SimpleLogin(app)

That's it!

Now you have /login and /logout routes in your application.

The username defaults to admin and the password defaults to secret (yeah that's not clever, let's see how to change it)

Login Screen

Documentation

To visualize changes on the documentation, it's necessary to install some packages and use Sphinx.

$ pip install -r docs/requirements.txt
$ sphinx-build docs docs/build

After that, access: docs/build/index.html.