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

Email OTP should have a period of validity #66

Open
bil0u opened this issue Oct 10, 2022 · 3 comments
Open

Email OTP should have a period of validity #66

bil0u opened this issue Oct 10, 2022 · 3 comments

Comments

@bil0u
Copy link

bil0u commented Oct 10, 2022

Hi,

I searched for this functionnality in the readme and by exploring the code and it seems that there is no concept of period of validity involved in the logic of mfa.Email.auth

Maybe this could be implemented using the request session only for email keys, or a more generic approach could be added directly using User_Keys.expires and a middleware.

In both case, this timeout should be configurable per OTP method and have sensible defaults.

Happy to discuss it further if you think it's worth it !

@mkalioby
Copy link
Owner

Good point, but it is only the email method which needs this implementation.

Do you like to give it a try or shall i do it?

@bil0u
Copy link
Author

bil0u commented Oct 10, 2022

Either way is fine, I can have a look during the week !

@mkalioby
Copy link
Owner

mkalioby commented Oct 10, 2022 via email

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

2 participants