Fix formatting

This commit is contained in:
Son NK 2019-12-30 15:56:47 +01:00
parent 2cbeab9c8e
commit ca6c32f951
3 changed files with 5 additions and 5 deletions

View file

@ -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,
) )

View file

@ -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,
) )

View file

@ -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():