francescotescari / XiaoMiToolV2

XiaomiTool V2 - Modding tool for xiaomi devices
https://www.xiaomitool.com
Apache License 2.0
627 stars 123 forks source link

Fails to save login info #64

Open davispuh opened 2 years ago

davispuh commented 2 years ago

Even when using latest git version, it still fails to save login info.

Basically login flow works correctly. I enter user/pass/captcha then SMS code and it shows me

{"R":"","S":"OK"}

img

I see that if you open in browser https://account.xiaomi.com/pass/serviceLogin?sid=unlockApi&json=false&passive=true&hidden=false&_snsDefault=facebook&checkSafePhone=true&_locale=en it gives cookies and automatically redirects to https://unlock.update.miui.com/sts

I guess our browser instance gets redirected without having a chance to grab cookies.

Dav4555 commented 2 years ago

Even when using latest git version, it still fails to save login info.

Basically login flow works correctly. I enter user/pass/captcha then SMS code and it shows me

{"R":"","S":"OK"}

img

I see that if you open in browser https://account.xiaomi.com/pass/serviceLogin?sid=unlockApi&json=false&passive=true&hidden=false&_snsDefault=facebook&checkSafePhone=true&_locale=en it gives cookies and automatically redirects to https://unlock.update.miui.com/sts

I guess our browser instance gets redirected without having a chance to grab cookies.

On which OS? Which latest git version u are using?I don't have that problem.

davispuh commented 2 years ago

On ArchLinux, using a335da6bb812272d68d6842ff88c4b7552465cc4 but I applied Linux commit on top.

Dav4555 commented 2 years ago

On ArchLinux, using a335da6 but I applied Linux commit on top.

Try my fork Linux branch, I use Manjaro.

anbuchelva commented 2 years ago

On ArchLinux, using a335da6 but I applied Linux commit on top.

Try my fork Linux branch, I use Manjaro.

It works only for the SMS based auth; not the QR code based auth. The problem is that the SMS code arrives once out of 5+ tries.

Dav4555 commented 2 years ago

On ArchLinux, using a335da6 but I applied Linux commit on top.

Try my fork Linux branch, I use Manjaro.

It works only for the SMS based auth; not the QR code based auth. The problem is that the SMS code arrives once out of 5+ tries.

u only need to login once, go to settings and activate save login data. then push the login. dont login while the unlock process.

ghost commented 2 years ago

your fix doesnt work either.

immjs commented 1 year ago

On ArchLinux, using a335da6 but I applied Linux commit on top.

Try my fork Linux branch, I use Manjaro.

It works only for the SMS based auth; not the QR code based auth. The problem is that the SMS code arrives once out of 5+ tries.

Further in post (also my case)

I enter user/pass/captcha then SMS code and it shows me