Change common_login to take in a user uuid, instead of a user DB object
This commit is contained in:
parent
7736de24fe
commit
aecec02b6c
7 changed files with 25 additions and 26 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue