|
@@ -47,8 +47,8 @@ def new_custom_alias():
|
|
if not data:
|
|
if not data:
|
|
return jsonify(error="request body cannot be empty"), 400
|
|
return jsonify(error="request body cannot be empty"), 400
|
|
|
|
|
|
- alias_prefix = data.get("alias_prefix", "").strip()
|
|
|
|
- alias_suffix = data.get("alias_suffix", "").strip()
|
|
|
|
|
|
+ alias_prefix = data.get("alias_prefix", "").strip().lower()
|
|
|
|
+ alias_suffix = data.get("alias_suffix", "").strip().lower()
|
|
note = data.get("note")
|
|
note = data.get("note")
|
|
alias_prefix = convert_to_id(alias_prefix)
|
|
alias_prefix = convert_to_id(alias_prefix)
|
|
|
|
|
|
@@ -114,8 +114,8 @@ def new_custom_alias_v2():
|
|
if not data:
|
|
if not data:
|
|
return jsonify(error="request body cannot be empty"), 400
|
|
return jsonify(error="request body cannot be empty"), 400
|
|
|
|
|
|
- alias_prefix = data.get("alias_prefix", "").strip()
|
|
|
|
- signed_suffix = data.get("signed_suffix", "").strip()
|
|
|
|
|
|
+ alias_prefix = data.get("alias_prefix", "").strip().lower()
|
|
|
|
+ signed_suffix = data.get("signed_suffix", "").strip().lower()
|
|
note = data.get("note")
|
|
note = data.get("note")
|
|
alias_prefix = convert_to_id(alias_prefix)
|
|
alias_prefix = convert_to_id(alias_prefix)
|
|
|
|
|