Closed jvillafanez closed 8 months ago
Kudos, SonarCloud Quality Gate passed!
Manual tests confirm this solves the issue 👍 Users for which a secret already exists in the DB would need to remove and re-add the account on their two-factor authentication app.
Ref: https://github.com/owncloud/enterprise/issues/6139
The problem was caused by an unexpected redirection which caused a second secret to be generated and stored, and it was different than the one shown in the QR.
The PR will only create new secrets if the user doesn't have one, otherwise it will show the same QR (if it hasn't been verified)