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

Cannot "rethink" e-mail address from the captcha dialog #351

Closed
1 task done
mirh opened this issue Nov 15, 2019 · 8 comments
Closed
1 task done

Cannot "rethink" e-mail address from the captcha dialog #351

mirh opened this issue Nov 15, 2019 · 8 comments

Comments

@mirh
Copy link

mirh commented Nov 15, 2019

Amazon Account (select one)

  • amazon.it

System Setup (please provide the following information):

  • OS Version: Windows 7
  • Kodi Version 18.4
  • Addon 0.7.5

Describe the bug
Try to log in with a wrong account email.
Get presented with the captcha dialog.
Figure out the right email address was another one.
Try to correct it, but the program still always employs the first one until you get out and retry from start.

@Varstahl
Copy link
Collaborator

I'm sorry I'm not sure I fully understand. When the captcha presents itself it's autofilled but you can still change it. What's the issue exactly?

@mirh
Copy link
Author

mirh commented Nov 16, 2019

It is autofilled - and it is "shown to change" when you edit it.
But the new isn't ever POST to amazon (and when it fails back telling you "no account existing" the first one is shown again)

@Sandmann79
Copy link
Owner

Amazon added some times ago a second email field. That's the reason, why in the old version with Mechanize an error accoured.
Now with Mechanicalsoup the wrong wrong field gets filled.
Fixing this soon.

@Sandmann79
Copy link
Owner

After a little research, it's not as easy to solve as I thought.
Since only the name of the input field can be used and both have the same name, I don't know how to change the second field.
So it's easier for me to disable the email field for input.

@Varstahl
Copy link
Collaborator

Is it a selector problem with Kodi or Amazon? May I help in any way?

@Sandmann79
Copy link
Owner

The problem are this input fields here:

<input name="email" type="hidden" value="**@**"/>
<div class="a-input-text-wrapper hide" data-claim="**@**"><input autocomplete="email" id="ap-credential-autofill-hint" name="email" type="text" value="**@**"/></div>

With MS i can only change one email control, because form.set or form.set_input accept only the name attribute, nothing more. So i don't know how to change the email in both controls.
But, i don't know if it's worth the effort, because it's easier to cancel the dialog and start the login from the beginning.

@Varstahl
Copy link
Collaborator

Yeah, I just checked that, it's a pretty wild and arbitrary limitation. Short of modifying MS and submitting a PR to allow selectors, we're better off bunny hopping the issue.

@mirh
Copy link
Author

mirh commented Nov 18, 2019

Chain open an issue on them then /s

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

No branches or pull requests

3 participants