mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
remove the built-in domain check when adding a custom domain
This commit is contained in:
parent
212463d688
commit
d20c96c837
@ -43,9 +43,7 @@ def custom_domain():
|
||||
if new_domain.startswith("https://"):
|
||||
new_domain = new_domain[len("https://") :]
|
||||
|
||||
if SLDomain.get_by(domain=new_domain):
|
||||
flash("A custom domain cannot be a built-in domain.", "error")
|
||||
elif CustomDomain.get_by(domain=new_domain):
|
||||
if CustomDomain.get_by(domain=new_domain):
|
||||
flash(f"{new_domain} already used", "error")
|
||||
elif get_email_domain_part(current_user.email) == new_domain:
|
||||
flash(
|
||||
|
Loading…
Reference in New Issue
Block a user