mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
Merge pull request #619 from Dattito/fix-wrong-description-of-error
fixed wrong description of error
This commit is contained in:
commit
da0ddd5a34
@ -48,7 +48,7 @@ def new_random_alias():
|
|||||||
elif mode == "uuid":
|
elif mode == "uuid":
|
||||||
scheme = AliasGeneratorEnum.uuid.value
|
scheme = AliasGeneratorEnum.uuid.value
|
||||||
else:
|
else:
|
||||||
return jsonify(error=f"{mode} must be either word or alias"), 400
|
return jsonify(error=f"{mode} must be either word or uuid"), 400
|
||||||
|
|
||||||
alias = Alias.create_new_random(user=user, scheme=scheme, note=note)
|
alias = Alias.create_new_random(user=user, scheme=scheme, note=note)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
Loading…
Reference in New Issue
Block a user