mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
check DomainDeletedAlias when creating new alias
This commit is contained in:
parent
1ded0c3e26
commit
c73820920b
1 changed files with 3 additions and 0 deletions
|
@ -701,6 +701,9 @@ class Alias(db.Model, ModelMixin):
|
|||
if DeletedAlias.get_by(email=email):
|
||||
raise AliasInTrashError
|
||||
|
||||
if DomainDeletedAlias.get_by(email=email, user_id=kw["user_id"]):
|
||||
raise AliasInTrashError
|
||||
|
||||
db.session.add(r)
|
||||
return r
|
||||
|
||||
|
|
Loading…
Reference in a new issue