Change common_login to take in a user uuid, instead of a user DB object

This commit is contained in:
Joseph Schorr 2017-07-20 15:40:14 -04:00
parent 7736de24fe
commit aecec02b6c
7 changed files with 25 additions and 26 deletions

View file

@ -882,7 +882,7 @@ class LoginWrappedDBUser(UserMixin):
@property
def is_active(self):
return self.db_user().verified
return self.db_user() and self.db_user().verified
def get_id(self):
return unicode(self._uuid)