invalid_link_message=f"You are using an invalid activation link. Try to log in and we will send you a new activation email. <br><a href='{index_url}'>Go to login page.</a>"
# We don't have the email or activation_token, show error.
returntrans.show_error_message(
f"You are using an invalid activation link. Try to log in and we will send you a new activation email. <br><a href='{index_url}'>Go to login page.</a>"
f"You are using an invalid activation link. Try to log in and we will send you a new activation email. <br><a href='{index_url}'>Go to login page.</a>"
# If the user is active already don't try to activate
ifuser.activeisTrue:
returntrans.show_ok_message(
@@ -315,9 +328,7 @@ class User(BaseUIController, UsesFormDefinitionsMixin):
)
else:
# Tokens don't match. Activation is denied.
returntrans.show_error_message(
f"You are using an invalid activation link. Try to log in and we will send you a new activation email. <br><a href='{index_url}'>Go to login page.</a>"