-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
valid_mail
regex is too strict
#366
Comments
The email validation will give only a warning and will not result in an abort. So your issue with the authentication must be something other. Do you have 2FA enabled? If not, this can cause the problem. It seams, Amazon has changed the the html response. So my package can not determine the correct page status. You can try to login using |
Thanks for the reply! You are right, I don't have MFA enabled at the moment. I'll try your suggestion! |
This issue has not been updated for a while and will be closed soon. |
This issue has automatically been closed due to no activities. |
(Noticed while debugging GGyll/audible-bookmark-extractor#16)
Describe the bug
I cannot authenticate. I always get the CVF prompt, but nothing happens.
When enabling the log, I get a message that my email address is not valid. However, it is. ;-)
Since this is just a warning, I am not sure if this solves my problem, but the regex seems to be wrong:
valid_mail = r"^[a-z0-9]+[\._-]?[a-z0-9]+[@]\w+[.]\w+$"
does check for TLS but does not allow subdomains on the right of the@
.To Reproduce
audible.Authenticator.from_login
with email and password2024-03-18 14:03:55,519 WARNING [audible.login] login.py:349: Username amazon@accounts.failing.systems is not a valid mail address
Expected behavior
Successful login, or received CFV code via email, or something like that.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Quick test using the latest regex:
The text was updated successfully, but these errors were encountered: