XiaoMiToolV2 icon indicating copy to clipboard operation
XiaoMiToolV2 copied to clipboard

Fails to save login info

Open davispuh opened this issue 2 years ago • 7 comments

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.

davispuh avatar Apr 01 '22 21:04 davispuh

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.

Dav4555 avatar Apr 10 '22 21:04 Dav4555

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

davispuh avatar Apr 10 '22 23:04 davispuh

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

Try my fork Linux branch, I use Manjaro.

Dav4555 avatar Apr 10 '22 23:04 Dav4555

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.

anbuchelva avatar Apr 12 '22 13:04 anbuchelva

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.

Dav4555 avatar Apr 12 '22 14:04 Dav4555

your fix doesnt work either.

ghost avatar Jul 30 '22 22:07 ghost

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

immjs avatar Dec 23 '22 19:12 immjs