-
-
Notifications
You must be signed in to change notification settings - Fork 954
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
Wrong ID used for TOTP secret label #2277
Comments
Besides the above mentioned bug, I found the following other issues in the message ID code. If you prefer, I can open separate issues for each of them.
|
Preflight checklist
Describe the bug
The message ID used in
NewInfoSelfServiceSettingsTOTPSecretLabel()
should in my opinion beInfoSelfServiceSettingsTOTPSecretLabel
and notInfoSelfServiceSettingsTOTPSecret
. Otherwise the same ID is used for the label as well as for the content.See here:
kratos/text/message_settings.go
Line 40 in 61ce3c0
The variable is already used above:
kratos/text/message_settings.go
Line 30 in 61ce3c0
Reproducing the bug
I guess you could try to retrieve the TOTP settings and you would see the structure using twice the same ID. (Not tested).
Relevant log output
No response
Relevant configuration
No response
Version
0.8.2-alpha.1, but still valid on master
On which operating system are you observing this issue?
No response
In which environment are you deploying?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: