If you paste the backup key password into riotx and there is a space at the end, it will be kept. As c&p from other apps might cause this, this causes unexpected user experience.
Tested on 0.16.0
Space is a valid character for passwords in lmatrix world, and we cannot take the responsibility to trim what user is entering, else, some users will be stucked
What if you add the following logic to riotx:
This way there is no surprise for users who copied & pasted their password and neither for the (I assume very rare) cases when someone has a leading or ending whitespace.
Password field has a reveal button (an eye), user can see the password in clear and detect a possible mistake with spaces.
I'm not sure it's a good idea to try several trimmed password, but why not...
We could also add a warning under the password field if a space is detected at beginning or end of password, the same way computer warn if the CAPS lock is on when entering password.
If you want to be very explicit, maybe the last variant is the best, notifying the user of something that might possible go wrong.
I'm not sure it's a good idea to try several trimmed password, but why not...
True, it could trigger security mechanisms in very sensitive setups
Most helpful comment
If you want to be very explicit, maybe the last variant is the best, notifying the user of something that might possible go wrong.