Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mfa_code_length in UI #3931

Merged
merged 3 commits into from Jul 11, 2022
Merged

Use mfa_code_length in UI #3931

merged 3 commits into from Jul 11, 2022

Conversation

magicznyleszek
Copy link
Member

Description

Display the same MFA code length in UI as set on backend.

@noliveleger
Copy link
Contributor

noliveleger commented Jul 11, 2022

@magicznyleszek I think we should remove the validation on the length of the token too. Because backup code can be longer than 6 (or whatever value provided by the back end).

Internal discussion: https://chat.kobotoolbox.org/#narrow/stream/4-Kobo-Dev/topic/2.2E022.2E24.20Release/near/131024

@magicznyleszek
Copy link
Member Author

@noliveleger good catch. Pushed a commit that fixes that. There was a magic number 6 used in the code

@duvld duvld merged commit 722128f into beta Jul 11, 2022
@duvld duvld deleted the mfa-code-length-use branch July 11, 2022 20:28
@duvld duvld restored the mfa-code-length-use branch July 11, 2022 20:28
@duvld duvld deleted the mfa-code-length-use branch July 11, 2022 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants