mirror of
https://github.com/simple-login/app.git
synced 2025-10-04 20:35:41 +08:00
fix POST /v2/alias/custom/new when DISABLE_ALIAS_SUFFIX is set
This commit is contained in:
parent
6f820c5fc5
commit
ee6a1a672d
1 changed files with 2 additions and 1 deletions
|
@ -170,6 +170,7 @@ def new_custom_alias_v2():
|
||||||
LOG.d(f"Alias {full_alias} is currently in the {domain.domain} trash. ")
|
LOG.d(f"Alias {full_alias} is currently in the {domain.domain} trash. ")
|
||||||
return jsonify(error=f"alias {full_alias} in domain trash"), 409
|
return jsonify(error=f"alias {full_alias} in domain trash"), 409
|
||||||
|
|
||||||
|
if domain:
|
||||||
custom_domain_id = domain.id
|
custom_domain_id = domain.id
|
||||||
|
|
||||||
alias = Alias.create(
|
alias = Alias.create(
|
||||||
|
|
Loading…
Add table
Reference in a new issue