aws-amplify / amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
https://ui.docs.amplify.aws
Apache License 2.0
912 stars 292 forks source link

FR: 2FA Input whitespace is trimmed before submit #5489

Open vasilicekaskinqualitypool opened 3 months ago

vasilicekaskinqualitypool commented 3 months ago

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Authenticator

Please describe your feature-request in detail.

Feature Request: Trim Whitespace in 2FA Code Input Field

Framework/Platform

React

UI Component

Authenticator

Feature Description

Currently, the input field for the 2FA (Two-Factor Authentication) code does not trim whitespace before submitting the code. This can lead to user frustration if they accidentally include leading or trailing spaces, causing their 2FA code to be rejected even though it is correct.

Please describe a solution you'd like.

Desired Behavior

The input field for the 2FA code should automatically trim any leading or trailing whitespace before submitting the code.

We love contributors! Is this something you'd be interested in working on?

esauerbo commented 3 months ago

Hey @vasilicekaskinqualitypool thanks for reporting this issue. We're adding this request to our project roadmap.