mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
make sure to "strip" custom domain before adding to DB
This commit is contained in:
parent
742b638011
commit
d2501e5961
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def custom_domain():
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
if request.form.get("form-name") == "create":
|
if request.form.get("form-name") == "create":
|
||||||
if new_custom_domain_form.validate():
|
if new_custom_domain_form.validate():
|
||||||
new_domain = new_custom_domain_form.domain.data
|
new_domain = new_custom_domain_form.domain.data.strip()
|
||||||
if CustomDomain.get_by(domain=new_domain):
|
if CustomDomain.get_by(domain=new_domain):
|
||||||
flash(f"{new_domain} already added", "warning")
|
flash(f"{new_domain} already added", "warning")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue