mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
fix case signed_suffix is None
This commit is contained in:
parent
79ca39a625
commit
eec2880c41
1 changed files with 3 additions and 1 deletions
|
@ -167,7 +167,9 @@ def new_custom_alias_v3():
|
|||
return jsonify(error="request body does not follow the required format"), 400
|
||||
|
||||
alias_prefix = data.get("alias_prefix", "").strip().lower().replace(" ", "")
|
||||
signed_suffix = data.get("signed_suffix", "").strip()
|
||||
signed_suffix = data.get("signed_suffix", "") or ""
|
||||
signed_suffix = signed_suffix.strip()
|
||||
|
||||
mailbox_ids = data.get("mailbox_ids")
|
||||
note = data.get("note")
|
||||
name = data.get("name")
|
||||
|
|
Loading…
Reference in a new issue