pyauth / pyotp

Python One-Time Password Library
https://pyauth.github.io/pyotp/
Other
2.91k stars 319 forks source link

fix verify function of totp.py file #143

Closed noob-coder-elseif closed 1 year ago

noob-coder-elseif commented 1 year ago

What does this implement/fix ?

It fixes the verify function of time based OTP module, two return function was called at the same time first one is returning true and next is returning false which was hindering the process of verification.

peterthomassen commented 1 year ago

The PR should include a unit test that makes sure that things work correctly. - Once you write that, you will see that your code is not correct. (It always returns from the first loop iteration.)