-
Notifications
You must be signed in to change notification settings - Fork 672
[5.x]: Non-admin users cant't create 2FA connection #16555
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
Comments
Hi, thanks for reaching out! Can you please post a stack trace for this error? |
Hi @i-just I think there is a big misunderstanding because the translation for our customer language is wrong: We came across this error when we tried to add TOTP. And since our website is in the Dutch language (NL), we thought from the error text that it had something to do with administrator rights. However, after checking the code for the TOTP service, I found no reference to administrator rights. I checked the translation for the “elevated session” and found that it contains a text for the NL that means you have problems with your administrator rights. I would ask you to check this for the NL version, and it is probably worth doing this for other languages as well. cms/src/translations/nl/app.php Line 1708 in 951b907
![]() |
@Romanavr Can you provide a better translation? |
I asked my native Dutch-speaking colleague and he said that this option should be understandable: Just in case, I checked it in my native language (RU) and everything looks good. |
Thank you! I’ve updated the translation for the next release. Translation work is primarily provided by Alconost, but the community can suggest better translations either here on GitHub or via CrowdIn (translate.craftcms.com). |
Nice, thanks! |
Uh oh!
There was an error while loading. Please reload this page.
What happened?
Description
If the user is not an administrator and has CP login rights, an error appears after scanning the 2FA QR and entering the code. Tested with Goggle Authenticator on Android and iPhone. For Android the QR code is modified as specified in #16552 (removed spaces from the url). The problem doesn't occur all the time.
Steps to reproduce
Expected behavior
The user should connect the 2FA code and login to the account.
Actual behavior
The permission denied error appears.
Craft CMS version
5.6.1
PHP version
8.2.26
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: