mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
use warning error for alias expiration error
This commit is contained in:
parent
bb343a5cde
commit
8f17cda794
2 changed files with 3 additions and 3 deletions
|
@ -141,7 +141,7 @@ def new_custom_alias_v2():
|
|||
try:
|
||||
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
||||
except SignatureExpired:
|
||||
LOG.error("Alias creation time expired for %s", user)
|
||||
LOG.warning("Alias creation time expired for %s", user)
|
||||
return jsonify(error="Alias creation time is expired, please retry"), 412
|
||||
except Exception:
|
||||
LOG.error("Alias suffix is tampered, user %s", user)
|
||||
|
@ -251,7 +251,7 @@ def new_custom_alias_v3():
|
|||
try:
|
||||
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
||||
except SignatureExpired:
|
||||
LOG.error("Alias creation time expired for %s", user)
|
||||
LOG.warning("Alias creation time expired for %s", user)
|
||||
return jsonify(error="Alias creation time is expired, please retry"), 412
|
||||
except Exception:
|
||||
LOG.error("Alias suffix is tampered, user %s", user)
|
||||
|
|
|
@ -156,7 +156,7 @@ def authorize():
|
|||
try:
|
||||
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
||||
except SignatureExpired:
|
||||
LOG.error("Alias creation time expired for %s", current_user)
|
||||
LOG.warning("Alias creation time expired for %s", current_user)
|
||||
flash("Alias creation time is expired, please retry", "warning")
|
||||
return redirect(request.url)
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in a new issue