WordPress / WordPress/two-factor
Pasting verification code no longer fires automatic login
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 825
- Forks
- 187
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 17
Description
Describe the bug
In the past, copying and pasting the verification code into the presented verification field would auto submit the request, allowing the user to login. Now, the Verify button is greyed out. After pasting, user has to delete the last digit, put it in manually, and it then fires off.
Steps to Reproduce
- Go to login on website
- login with username and pass
- Copy verification code from received email
- Paste into website
- Verify button stays grey
- Delete the last number
- Reenter the number manually
- Login starts automatically
Screenshots, screen recording, code snippet
I was able to resolve the issue by using this as a plugin-mu:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the login_enqueue_scripts hook and the two-factor-login-authcode script handling the authcode field; compare paste handling with the input and keyup behavior described in the report. Confirm that pasting a complete verification code enables the Verify button and automatically begins login using the reported reproduction steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100