-
Notifications
You must be signed in to change notification settings - Fork 33
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
Get the choice to remove expiration parameter #40
Comments
Hi @bastien70 - Glad to hear you are using this bundle! I think what you're looking for is the ability to increase the length of time the verification links are valid for. This https://github.com/SymfonyCasts/verify-email-bundle#configuration should help you out with that. By default, once a user registers, they have If you run into trouble or need further assistance, please feel free to let us know! |
Thank you for your prompt response ! So I had seen this configuration, but suddenly I have two cases:
So I have two different needs. One with a maximum expiration of 1 hour, and the other that would be for 10 days. In this case, there would be a way to get multiple possible configurations and pass a parameter to say which configuration we want to use for this or that case? |
hmm that is very interesting. Shooting from the hip - I want to say what you're describing is currently not possible, I'd have to look over our code base to confirm. But it's definitely a good idea and something I have to chew on for a bit to come up with a good implementation. I think in the meantime, setting the |
For clarity - new feature to allow lifetime configuration changes at runtime in userland. |
Okay nice I will do that :) |
Not working for me |
Are you sure about that becouse it not working |
It should work - we’re passing the expiration right here - https://github.com/SymfonyCasts/verify-email-bundle/blob/main/src/VerifyEmailHelper.php#L49 - try adding some debug code around there to see what’s going on. |
Don't forget to clear the cache after changing the configuration ( |
Hello, it might be interesting to choose whether or not to add an expiration of the email confirmation link.
In my case, this would be useful because the administrator of my application is able to create accounts for his employees. They must confirm their account within 10 days, otherwise I delete the account with a CRON job. But suddenly with the expiration date, it forces them to confirm their account very quickly
The text was updated successfully, but these errors were encountered: