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

Ensure there are no blank spaces or line breaks around the token #382

Merged
merged 3 commits into from
Aug 26, 2020

Conversation

kasparsd
Copy link
Collaborator

Fixes #379.

@@ -269,7 +269,7 @@ public function authentication_page( $user ) {
<p><?php esc_html_e( 'A verification code has been sent to the email address associated with your account.', 'two-factor' ); ?></p>
<p>
<label for="authcode"><?php esc_html_e( 'Verification Code:', 'two-factor' ); ?></label>
<input type="tel" name="two-factor-email-code" id="authcode" class="input" value="" size="20" pattern="[0-9]*" />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow all kinds of inputs to avoid blocking users as they copy codes with wrapping empty spaces or line breaks from their email clients.

@kasparsd kasparsd merged commit 736473e into master Aug 26, 2020
@kasparsd kasparsd deleted the fix/phpcs-followup branch August 26, 2020 09:53
@jeffpaul jeffpaul added this to the 0.7.0 milestone Jan 12, 2022
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.

Email auth codes copy paste issue
2 participants