mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
fix
This commit is contained in:
parent
bcdf522174
commit
836b602316
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ def update_alias(alias_id):
|
|||
|
||||
if "name" in data:
|
||||
# to make sure alias name doesn't contain linebreak
|
||||
new_name = data.get("name").replace("\n", "")
|
||||
new_name = data.get("name")
|
||||
if new_name:
|
||||
new_name = new_name.replace("\n", "")
|
||||
alias.name = new_name
|
||||
|
|
Loading…
Reference in a new issue