-
Notifications
You must be signed in to change notification settings - Fork 754
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
hide otp #7926
base: master
Are you sure you want to change the base?
hide otp #7926
Conversation
Wouldn't it be easier to move the OTP seed to the QR code unhide button by clustering the sections together? |
@@ -434,6 +434,19 @@ function get_user_privdesc(& $user) | |||
$('#otp_qrcode').show(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cluster the sections together as in bundle the "unhide" action into this method??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, so you don't have to manipulate the existing input / add the textarea
I tried to move the OTP seed into the otp_qrcode div core/src/www/system_usermanager.php Lines 933 to 945 in b49b935
like so
but i guess when There is another problem. When a new user is created the OTP field is gone entirely from the form and can no longer be generated. The only way I see around this is to allow generating an OTP seed at user creation, but then the field would only appear IFF the user has an OTP seed at creation. |
I’ll take a look on Monday. Thanks for looking into it. |
#7911 hide the OTP seed after it has been generated. Tested in a vm. Not a big deal if this gets swept up in migration for #7904. I'd be happy to help chip away on that