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
Make PasswordToken cloneable #184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change needed?
So I can retry |
Good point. I would prefer if another solution was chosen, though, as making cloneable defeats the purpose of "making invalid states irrepresentable" (here, being able to use the token freely, even after successful sign-in). What we should do is change the return type of But I know that's a pain. So please at least add: // TODO this should not be Clone, but check_password Err doesn't include it back yet above the change so we can remember to address it in the future. And then we can merge this temporary workaround. (Unless you want to implement the better |
|
The We probably want something as discussed in https://t.me/gramme_rs/17454. But that can come later. I'm happy with adding the TODO for now. |
Done! |
No description provided.