307
313
raise DBException("Supplied arguments include passhash (invalid) (1).")
308
314
# Make a copy of the dict. Change password to passhash (hashing it),
309
315
# and set 'state' to "no_agreement".
316
return self.insert(kwargs, "login", self.login_fields, dry=dry)
335
return self.insert(fields, "login", self.login_fields, dry=dry)
318
337
def update_user(self, login, dry=False, **kwargs):
319
338
"""Updates fields of a particular user. login is the name of the user