diff --git a/core/admin/mailu/models.py b/core/admin/mailu/models.py index bc1044db..22839e3b 100644 --- a/core/admin/mailu/models.py +++ b/core/admin/mailu/models.py @@ -349,6 +349,10 @@ class User(Base, Email): self.sendmail(app.config["WELCOME_SUBJECT"], app.config["WELCOME_BODY"]) + @classmethod + def get(cls, email): + return cls.query.get(email) + @classmethod def login(cls, email, password): user = cls.query.get(email)