mirror of
https://github.com/wassname/flask-security.git
synced 2026-08-12 12:00:37 +08:00
This commit is contained in:
@@ -38,9 +38,12 @@ _datastore = LocalProxy(lambda: _security.datastore)
|
||||
_pwd_context = LocalProxy(lambda: _security.pwd_context)
|
||||
|
||||
|
||||
def login_user(user, remember=True):
|
||||
def login_user(user, remember=None):
|
||||
"""Performs the login and sends the appropriate signal."""
|
||||
|
||||
if remember is None:
|
||||
remember = config_value('DEFAULT_REMEMBER_ME')
|
||||
|
||||
if not _login_user(user, remember):
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user