368
368
def user_authenticate(self, login, password, dry=False):
369
369
"""Performs a password authentication on a user. Returns True if
370
370
"passhash" is the correct passhash for the given login, False
372
373
Also returns False if the login does not exist (so if you want to
373
374
differentiate these cases, use get_user and catch an exception).
379
378
result = self.db.query(query)
385
389
"""Close the DB connection. Do not call any other functions after