-
Notifications
You must be signed in to change notification settings - Fork 9
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
token can be used several times #59
Comments
likely not a regression as this part of the code wasn't touched |
If someone listens to the user-server conversation and learns the secret, he/she still should be unable to log on. I am planning to add a column to app table for the last secret and prevent this situation. |
Retested following these stpes:
It keeps failing. I'm still able to log in with the same token. (tested with oC 10.0.9 and TOTP release-0.5.0) |
|
Somehow mapper update is not working in this line: https://github.com/owncloud/twofactor_totp/blob/master/lib/Service/Totp.php#L123. lastValidatedKey column always null. I will debug it. |
I found my mistake. To prevent method does not exist warnings in createMock function, I implemented set function for last_validated_key column in here: https://github.com/owncloud/twofactor_totp/blob/master/lib/Db/TotpSecret.php#L65. Obviously, entity setters are doing more than just assignment. They are also updating UpdatedFields of the entity. I will create a fix for my mistake. |
please open a PR for master in the future please also manually test to make sure everything works |
Okay, I will be more careful. Sorry for the mess. |
From RFC6238 :
The text was updated successfully, but these errors were encountered: