mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-09 12:00:34 +08:00
Clean up
This commit is contained in:
@@ -48,7 +48,6 @@ _default_config = {
|
||||
'POST_CONFIRM_VIEW': None,
|
||||
'POST_RESET_VIEW': None,
|
||||
'UNAUTHORIZED_VIEW': None,
|
||||
'DEFAULT_ROLES': [],
|
||||
'CONFIRMABLE': False,
|
||||
'REGISTERABLE': False,
|
||||
'RECOVERABLE': False,
|
||||
@@ -60,7 +59,7 @@ _default_config = {
|
||||
'LOGIN_WITHOUT_CONFIRMATION': False,
|
||||
'EMAIL_SENDER': 'no-reply@localhost',
|
||||
'TOKEN_AUTHENTICATION_KEY': 'auth_token',
|
||||
'TOKEN_AUTHENTICATION_HEADER': 'X-Auth-Token',
|
||||
'TOKEN_AUTHENTICATION_HEADER': 'Authentication-Token',
|
||||
'CONFIRM_SALT': 'confirm-salt',
|
||||
'RESET_SALT': 'reset-salt',
|
||||
'LOGIN_SALT': 'login-salt',
|
||||
|
||||
@@ -22,8 +22,6 @@ class UserDatastore(object):
|
||||
:param user_model: A user model class definition
|
||||
:param role_model: A role model class definition
|
||||
"""
|
||||
pwd_context = None
|
||||
default_roles = []
|
||||
|
||||
def __init__(self, db, user_model, role_model):
|
||||
self.db = db
|
||||
|
||||
Reference in New Issue
Block a user