stable

Clone or download

Read-only

fix: Add length limit for passkey name

Part of story #31177 check my identity when doing a risky action In database the passkey name can contains only 255 characters. UI allow to input as many as we want. This commit adds attribute maxlength on the input and also check in backend the length of the name *Testing:* While registering a passkey, you can't input more than 250 characters. If you cheat, the backend will return an error 400 with 'Name of passkey can contains 250 characters maximum'. Change-Id: Ia342b3c60d58c99027590024ab916a33dd5b9fe9

Modified Files

Name
M plugins/webauthn/templates/name-modal.mustache +1 −1 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +5 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
M src/common/WebAuthn/Controllers/PostRegistrationController.php +3 −0 Go to diff View file
M tests/unit/common/WebAuthn/Controllers/PostRegistrationControllerTest.php +7 −0 Go to diff View file