-
Notifications
You must be signed in to change notification settings - Fork 77
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
Small correction. #5
Comments
thanks for sharing, i'll also have the same error but works fine right now |
Alibou sir i'm having an issue that i couldn't fix in the account activation it always saying invalid token |
I think that I know how to help, and I hope Ali allows me to answer the question. For activation the application is waiting not a token, but the been generated and saved code:
So you could try to send it instead of sending token for the activation. |
Sorry - I think I described the issue badly. The application can be booted and is running without any error, but while you are doing a registration, email can't be sent (it not appears here http://localhost:1080/#/), and in terminal appears this error message |
Hello, also you could recheck ~ 02:48:00 the tutorial video https://www.youtube.com/watch?v=xqhdRrFzLFY |
The issue is that i can reiceive the verification token but when for the activation i got Invalid token exception and i have log the token it seems i got two different token. like this "Invalid token787589,824433" |
This is the error i got when verified the account it seems to generate to different token |
I have also removed @transactional on the activateAccount method |
You should make postgres and mail containers to start from zero every time - for that I changed this Now every time you restart the application you have its initial state. What that gave? By your comments I there is some trouble with saving generated token in the database. I think you should debug the code and explore why the saved code is like this '787589,622352', as it has to be two times shorter: this 787589 or this 622352. How it happened you sending while testing this 'doubled' code? It is not right.
|
Exactly while testing the token has double. here is my repository link: https://github.com/AtalibAgAlmousleck/full-stack-spring-boot-angular-books |
I would like to offer you to find the solution, so please read carefully - I am trying to help.
After this method the generated token has to be saved in the db and you could check it. It should contain only six numbers (if yoy did not do any changes in this tutorial). |
Unfortunately the git link you sent can't be opened - please recheck. Maybe it is better to see your code. |
https://github.com/ali-bouali/book-social-network/blame/f9e16680db83b154b926aef2984994c252a37cc5/book-network/src/main/java/com/alibou/book/email/EmailService.java#L40
With the code as it is I always got an error: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [ACTIVATE_ACCOUNT], template might not exist or might not be accessible by any of the configured Template Resolvers
After changing templateName = emailTemplate.name(); to templateName = emailTemplate.getName(); everything is working.
The text was updated successfully, but these errors were encountered: