From b7d71f8c59064aa6d51ea32a1981e5da8f784ffa Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Fri, 17 Aug 2012 12:52:05 -0400 Subject: [PATCH] Remove old commit param --- flask_security/core.py | 1 - flask_security/datastore.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/flask_security/core.py b/flask_security/core.py index b548b29..4af1d60 100644 --- a/flask_security/core.py +++ b/flask_security/core.py @@ -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, diff --git a/flask_security/datastore.py b/flask_security/datastore.py index d80f114..1322b83 100644 --- a/flask_security/datastore.py +++ b/flask_security/datastore.py @@ -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