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

Enforced 2FA - get otp-Token on Registration fails - Entered token is not valid #6260

Open
wsirhc opened this issue Jun 26, 2024 · 0 comments

Comments

@wsirhc
Copy link

wsirhc commented Jun 26, 2024

My Issue is quite similar to #4646 but somehow different.

During the registration process, seahub complains "Entered token is not valid", after scanning the totp-QR Code.
This issue occurs not reproducable. In some registrations, the token will be accepted instantly. In Some cases, it's required to delete the session cookies and to login again. This is our current workaround, but many non-technical people do complain about this issue.

Steps to reproduce:

  • Account is created, user gets the registration Mail.
  • User logins with username and password
  • User accepts GDPR Policy
  • User and gets the 2FA QR-Code
  • User scans the QR-Code to obtain the Token (tried with Freeotp+ and Google Authenticator)
  • Either the User gets the recovery token list, or the message "Entered token is not valid"

I made sure, that the OS system time is correct and synchronized.

Due to it seems to have something to do with session cookies, is there anything that must be adjusted for cookie handling (seahub or nginx Reverseproxy?)

System environment:

  • Seafile 11.0.9 CE in Kubernetes
  • Firefox 115.11.0esr, MS Edge 126.0.2592.68
  • Freeotp+, Google Authenticator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants