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

mfa: strip trailing newline when reading TOTP codes #6948

Merged
merged 5 commits into from
May 19, 2021

Conversation

awly
Copy link
Contributor

@awly awly commented May 19, 2021

The newline should not be interpreted as part of the code (or any
prompt.Input result).

Updates #6892

The newline should not be interpreted as part of the code (or any
`prompt.Input` result).
@awly awly force-pushed the andrew/input-strip-whitespace branch from c7ecce4 to 55a8bcd Compare May 19, 2021 18:35
@awly awly enabled auto-merge (squash) May 19, 2021 18:39
lib/utils/prompt/confirmation_test.go Outdated Show resolved Hide resolved
Co-authored-by: Andrej Tokarčík <andrej@goteleport.com>
@awly awly force-pushed the andrew/input-strip-whitespace branch from c876077 to e942212 Compare May 19, 2021 18:50
@awly awly merged commit 4f20fc3 into master May 19, 2021
@awly awly deleted the andrew/input-strip-whitespace branch May 19, 2021 20:58
awly pushed a commit that referenced this pull request May 19, 2021
The newline should not be interpreted as part of the code (or any
`prompt.Input` result).
awly pushed a commit that referenced this pull request May 20, 2021
The newline should not be interpreted as part of the code (or any
`prompt.Input` result).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants