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

Bad Code error with new OTP #4506

Open
hitenmandalia opened this issue Nov 29, 2024 · 4 comments
Open

Bad Code error with new OTP #4506

hitenmandalia opened this issue Nov 29, 2024 · 4 comments

Comments

@hitenmandalia
Copy link

Steps to reproduce

  1. Once install is complete, oAuth user see's Account in Construction. This is displayed even after leaving it for some time
  2. Generate new OTP code for user.
  3. When user logs in, and enters OTP, they see Bad Code error

Expected behaviour

OTP should be accepted

Actual behaviour

Bad Code error

Server configuration

Operating system: Alpine Linux

Web server: Nginx

Database: MySQL 8

PHP version:

Teampass version: 3.1.2.172

image

@hitenmandalia hitenmandalia changed the title Bad Code error when generating new OTP Bad Code error with new OTP Nov 29, 2024
@hitenmandalia
Copy link
Author

Tested with a locally created user and this is not an issue. so seems its only with oauth users?

@nilsteampassnet
Copy link
Owner

Have you checked what the apache log contains?

@hitenmandalia
Copy link
Author

hitenmandalia commented Dec 6, 2024

Hi @nilsteampassnet Checked and nothing appears in the logs. I just get bad code on screen. I have ensure that i have put in the code given when generating new keys but never work.

All AzureAD users are able to log in. However, they get the Account in Construction message, which never disappears. As reference by jhumphries in #4440 (second to last post), when trying to generate new keys and using them, it get the bad code error.

If i create the user locally in teampass, then I do not experience this issue.

@hitenmandalia
Copy link
Author

so i just found something. It seems that the column "is_ready_for_usage" in the teampass_users table, for my oauth2 users stays at 0. I changed it to 1 and the Account in Construction has now disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants