Fix formatting
This commit is contained in:
parent
2cbeab9c8e
commit
ca6c32f951
|
@ -31,7 +31,7 @@ def new_custom_alias():
|
||||||
return (
|
return (
|
||||||
jsonify(
|
jsonify(
|
||||||
error="You have reached the limitation of a free account with the maximum of "
|
error="You have reached the limitation of a free account with the maximum of "
|
||||||
"3 custom aliases, please upgrade your plan to create more custom aliases"
|
"3 custom aliases, please upgrade your plan to create more custom aliases"
|
||||||
),
|
),
|
||||||
400,
|
400,
|
||||||
)
|
)
|
||||||
|
|
|
@ -22,7 +22,9 @@ def activate():
|
||||||
|
|
||||||
if not activation_code:
|
if not activation_code:
|
||||||
return (
|
return (
|
||||||
render_template("auth/activate.html", error="Activation code cannot be found"),
|
render_template(
|
||||||
|
"auth/activate.html", error="Activation code cannot be found"
|
||||||
|
),
|
||||||
400,
|
400,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -33,9 +33,7 @@ def reset_password():
|
||||||
return render_template("auth/reset_password.html", form=form, error=error)
|
return render_template("auth/reset_password.html", form=form, error=error)
|
||||||
|
|
||||||
if reset_password_code.is_expired():
|
if reset_password_code.is_expired():
|
||||||
error = (
|
error = "The link has been already expired. Please make a new request of the reset password link"
|
||||||
"The link has been already expired. Please make a new request of the reset password link"
|
|
||||||
)
|
|
||||||
return render_template("auth/reset_password.html", form=form, error=error)
|
return render_template("auth/reset_password.html", form=form, error=error)
|
||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
|
|
Loading…
Reference in a new issue