Skip to main content

Module for common login service

Project description

Module for common login service
$ pip install login
from login.check import generate_password_hash, check_password_hash, set_salt


# signin
email = ''
password_hash = generate_password_hash(password)
user = User(email, password_hash)

# login
user = User.query.filter( == '').first();
assert user is not None
check_password_hash(password, user.password)

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

login-0.0.2.tar.gz (1.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page