Fix formatting
This commit is contained in:
parent
2cbeab9c8e
commit
ca6c32f951
|
@ -22,7 +22,9 @@ def activate():
|
|||
|
||||
if not activation_code:
|
||||
return (
|
||||
render_template("auth/activate.html", error="Activation code cannot be found"),
|
||||
render_template(
|
||||
"auth/activate.html", error="Activation code cannot be found"
|
||||
),
|
||||
400,
|
||||
)
|
||||
|
||||
|
|
|
@ -33,9 +33,7 @@ def reset_password():
|
|||
return render_template("auth/reset_password.html", form=form, error=error)
|
||||
|
||||
if reset_password_code.is_expired():
|
||||
error = (
|
||||
"The link has been already expired. Please make a new request of the reset password link"
|
||||
)
|
||||
error = "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)
|
||||
|
||||
if form.validate_on_submit():
|
||||
|
|
Loading…
Reference in a new issue