Forbid empty input in SAML smart card PIN dialog
Don't allow the user to submit the dialog (e.g., click "Next") before entering anything into the input field. Before the CL, the user could submit an empty field, which would lead to unexpected effect for the user, since an empty input is treated internally like a cancellation. This CL changes this to only allow cancelling the dialog in case there's no input yet. In the (rare) case the user's smart card is not protected by a PIN, it's the responsibility of the smart card middleware to not request the PIN input at all. Bug: 1024251 Test: start SAML login using a smart card, reach the PIN dialog, check that the "Next" button is disabled and pressing "Enter" has no effect, enter any digit, check that the "Next" button is enabled Change-Id: I07bc8e48ffe802aa0fcfeda45f0db489a95fad5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2002510Reviewed-by:Denis Kuznetsov [CET] <antrim@chromium.org> Commit-Queue: Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#733456}
Showing
Please register or sign in to comment