-
-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Copy link
Description
Describe the problem
Valid MFA recovery codes are never sent to the server. Instead, the browser shows “Please enter a valid recovery code.” and blocks submission.
Root cause: In the mfa_verify.html template, the recovery code input (id="recovery_code", name="mfa_code") has minlength="20", while the default configuration sets recovery codes to 10 characters ('recovery_code_length' => 10). The client-side (HTML/JS) validation deems 10-char codes too short and prevents the request from being submitted.
Steps to reproduce
- Enable MFA recovery codes with the default setting (recovery_code_length = 10)
- Enable MFA for a user (e.g., Authenticator App)
- Note down the generated MFA recovery codes
- Log in as that user
- Click “Use a recovery code.”
- Enter a valid, generated 10-character recovery code
- Submit the form
- The browser shows “Please enter a valid recovery code.”
Poweradmin version
4.0.1
Database
MySQL
Additional information (optional)
No response
Reactions are currently unavailable