mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-25 23:41:33 +01:00
Fix email sign up
This commit is contained in:
parent
54a636d79e
commit
9cc3eba009
@ -214,6 +214,9 @@ class User(db.Model, UserMixin):
|
|||||||
.filter(Thread.created_at > hour_ago).count() < 2
|
.filter(Thread.created_at > hour_ago).count() < 2
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
|
if other is None:
|
||||||
|
return False
|
||||||
|
|
||||||
if not self.is_authenticated or not other.is_authenticated:
|
if not self.is_authenticated or not other.is_authenticated:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user