mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-28 16:20:24 +08:00
Remove old commit param
This commit is contained in:
@@ -42,7 +42,6 @@ _default_config = {
|
||||
'REGISTER_URL': '/register',
|
||||
'RESET_URL': '/reset',
|
||||
'CONFIRM_URL': '/confirm',
|
||||
'LOGIN_VIEW': '/login',
|
||||
'POST_LOGIN_VIEW': '/',
|
||||
'POST_LOGOUT_VIEW': '/',
|
||||
'POST_FORGOT_VIEW': None,
|
||||
|
||||
@@ -155,7 +155,7 @@ class UserDatastore(object):
|
||||
"""
|
||||
return self._save_model(self._do_add_role(user, role))
|
||||
|
||||
def remove_role_from_user(self, user, role, commit=True):
|
||||
def remove_role_from_user(self, user, role):
|
||||
"""Removes a role from a user if the user has the role. Returns the
|
||||
modified user.
|
||||
|
||||
@@ -171,7 +171,7 @@ class UserDatastore(object):
|
||||
"""
|
||||
return self._save_model(self._do_deactive_user(user))
|
||||
|
||||
def activate_user(self, user, commit=True):
|
||||
def activate_user(self, user):
|
||||
"""Activates a user and returns the modified user.
|
||||
|
||||
:param user: A User instance or a user identifier
|
||||
|
||||
Reference in New Issue
Block a user