use warning error for alias expiration error
This commit is contained in:
parent
bb343a5cde
commit
8f17cda794
|
@ -141,7 +141,7 @@ def new_custom_alias_v2():
|
||||||
try:
|
try:
|
||||||
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
||||||
except SignatureExpired:
|
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
|
return jsonify(error="Alias creation time is expired, please retry"), 412
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.error("Alias suffix is tampered, user %s", user)
|
LOG.error("Alias suffix is tampered, user %s", user)
|
||||||
|
@ -251,7 +251,7 @@ def new_custom_alias_v3():
|
||||||
try:
|
try:
|
||||||
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
||||||
except SignatureExpired:
|
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
|
return jsonify(error="Alias creation time is expired, please retry"), 412
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.error("Alias suffix is tampered, user %s", user)
|
LOG.error("Alias suffix is tampered, user %s", user)
|
||||||
|
|
|
@ -156,7 +156,7 @@ def authorize():
|
||||||
try:
|
try:
|
||||||
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
alias_suffix = signer.unsign(signed_suffix, max_age=600).decode()
|
||||||
except SignatureExpired:
|
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")
|
flash("Alias creation time is expired, please retry", "warning")
|
||||||
return redirect(request.url)
|
return redirect(request.url)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in a new issue