Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template for when email verification token has been used or is expired. #21

Closed
phoob opened this issue Oct 6, 2018 · 4 comments
Closed

Comments

@phoob
Copy link
Contributor

phoob commented Oct 6, 2018

Right now I can customize the template for “verify-success” and “subscribe-success”, but I would like to also be able to customize failures. Now the user only gets the grey _layouts/message template with no way back to our site.

@putyourlightson
Copy link
Collaborator

Ok, I'll put this on the list for an upcoming release, thanks!

@putyourlightson
Copy link
Collaborator

What kind of failures do you mean specifically? If they are Craft errors then it will require creating a template for each of those. See this article on how to do so:
https://nystudio107.com/blog/handling-errors-gracefully-in-craft-cms#handling-exceptions-on-the-frontend

@putyourlightson
Copy link
Collaborator

Never mind, I just reread the issue title :)

@putyourlightson
Copy link
Collaborator

Ok, so the verification errors all result in a NotFoundHttpException which returns Craft's 404 template. You can customise this by creating a template called 404.html or 404.twig in the root of your tem­plates fold­er, or any­where you want using the errorTem­platePre­fix con­fig setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant