Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1008 Bytes

old_api.rst

File metadata and controls

40 lines (30 loc) · 1008 Bytes

Flask-User API

Template variables

The following template variables are available for use in email and form templates:

Template functions

The following template functions are available for use in email and form templates:

hash_password()

user_manager.hash_password(password)
# Returns hashed 'password' using the configured password hash
# Config settings: USER_PASSWORD_HASH_MODE = 'passlib'
#                  USER_PASSWORD_HASH      = 'bcrypt'
#                  USER_PASSWORD_SALT      = SECRET_KEY

verify_password()

user_manager.verify_password(password, user.password)
# Returns True if 'password' matches the user's 'hashed password'
# Returns False otherwise.

Signals