if self.state is not "authenticated":
log("User " + self.account.get("name") + " logged in.", 2)
self.authenticated = True
if self.state is not "authenticated":
log("User " + self.account.get("name") + " logged in.", 2)
self.authenticated = True
user.state = "main_utility"
# if at first your hashes don't match, try, try again
user.state = "main_utility"
# if at first your hashes don't match, try, try again
user.state = "verifying_new_password"
# the password was weak, try again if you haven't tried too many times
user.state = "verifying_new_password"
# the password was weak, try again if you haven't tried too many times