Fix email sign up

This commit is contained in:
rubenwardy 2020-04-11 17:56:35 +01:00
parent 54a636d79e
commit 9cc3eba009
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,9 @@ class User(db.Model, UserMixin):
.filter(Thread.created_at > hour_ago).count() < 2
def __eq__(self, other):
if other is None:
return False
if not self.is_authenticated or not other.is_authenticated:
return False