jazzband / django-two-factor-auth

Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.
MIT License
1.71k stars 448 forks source link

'RemoteYubikeyDevice' object has no attribute 'throttle_reset' #699

Closed ValentinS33 closed 6 months ago

ValentinS33 commented 10 months ago

Same issue than #397 but with RemoteYubikeyDevice. This crash occurs when logging in with RemoteYubikey integration, logging out, then attempting to log in again. In my case, I also check "remember this device for 30 days".

Expected Behavior

Authorization should occur normally.

Current Behavior

Python crash, session not established.

Steps to Reproduce (for bugs)

  1. Set up 2-factor on an account with Yubikey integration
  2. Log out.
  3. Log in again, provide a token and check "remember this device for 30 days".
  4. Log out.
  5. Attempt to log in again.
  6. Crash will occur after login form submission

Your Environment