You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.
If you copy your validation code from you e-mail by double-clicking on the verification code to select the code, when you paste it into the Verification Code field it pastes with a leading blank and this fails verification. I think it would be a good idea to trim the field before validating it. This can be achieved by changing line 915 of /usr/clearos/apps/two_factor_auth/libraries/Two_Factor_Auth.php from if (! preg_match("/^([a-zA-Z0-9]+)$/", $code)) to if (! preg_match("/^([a-zA-Z0-9]+)$/", trim($code)))
Tested with the Thunderbird e-mail client.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you copy your validation code from you e-mail by double-clicking on the verification code to select the code, when you paste it into the Verification Code field it pastes with a leading blank and this fails verification. I think it would be a good idea to trim the field before validating it. This can be achieved by changing line 915 of /usr/clearos/apps/two_factor_auth/libraries/Two_Factor_Auth.php from
if (! preg_match("/^([a-zA-Z0-9]+)$/", $code))
toif (! preg_match("/^([a-zA-Z0-9]+)$/", trim($code)))
Tested with the Thunderbird e-mail client.
The text was updated successfully, but these errors were encountered: