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

Fix MFA for Chinese accounts #2234

Merged
merged 1 commit into from
Jan 1, 2022
Merged

Conversation

howard0su
Copy link
Contributor

No description provided.

@@ -184,17 +184,16 @@ defmodule TeslaApi.Auth.Login do
String.contains?(body, "Recaptcha is required") ->
{:error, %Error{reason: :recaptcha_required, env: env}}

String.contains?(body, "/oauth2/v3/authorize/mfa/verify") ->
String.contains?(body, "/authorize/mfa/verify") ->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to change this as telsa.cn uses /oauth2/v1/authorize/mfa/verify in javascript

@adriankumpf adriankumpf merged commit 811dac1 into teslamate-org:master Jan 1, 2022
@adriankumpf
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants