Closed brynwhyman closed 2 years ago
From what I can see this only affects the user if they manually copy directly from the register screen as both the Download and Copy codes buttons correctly output without the spaces.
Potential Options could be:
I am happy to create a PR if someone has a preference or a better solution.
Option 3 is the most 'standard user'-proof since spaces are not valid characters in those anyway (right?), so we can possibly just run it via [a-ZA-Z0-9]
regex or something along those lines.
Fixed by #463
Overview
MFA recovery codes are provided with space characters in the .txt file. However, the recovery code form does not accept spaces and will alert the user that the code is invalid when pasted directly.
The user needs to remove the spaces, but there's no guidance to know that this is the case.