Rename get_federated_user to get_and_link_federated_user_info

Better to be explicit wherever possible
This commit is contained in:
Joseph Schorr 2017-03-21 13:06:55 -04:00
parent 1a31d98c44
commit bd22fb255e
4 changed files with 9 additions and 9 deletions

View file

@ -175,11 +175,11 @@ class UserAuthentication(object):
"""
return self.state.link_user(username_or_email)
def get_federated_user(self, user_info):
def get_and_link_federated_user_info(self, user_info):
""" Returns a tuple containing the database user record linked to the given UserInformation
pair and any error that occurred when trying to link the user.
"""
return self.state.get_federated_user(user_info)
return self.state.get_and_link_federated_user_info(user_info)
def confirm_existing_user(self, username, password):
""" Verifies that the given password matches to the given DB username. Unlike