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

Unable to login to ProtonMail via hydroxide #252

Closed
User10987654321 opened this issue May 11, 2023 · 3 comments · Fixed by #254
Closed

Unable to login to ProtonMail via hydroxide #252

User10987654321 opened this issue May 11, 2023 · 3 comments · Fixed by #254

Comments

@User10987654321
Copy link

User10987654321 commented May 11, 2023

$ hydroxide auth user Password: 2023/05/10 21:49:03 request failed: POST https://mail.proton.me/api/auth/info: [5003] This web page is out of date, please refresh the page to continue using it 2023/05/10 21:49:03 [5003] This web page is out of date, please refresh the page to continue using it

and

Password: 2023/05/10 22:19:45 request failed: POST https://mail.proton.me/api/auth: [9001] For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/abuse 2023/05/10 22:19:45 [9001] For security reasons, please complete CAPTCHA. If you can't pass it, please try updating your app or contact us here: https://proton.me/support/abuse

I get this error with both aur and github sources

@recanman
Copy link

I fixed this by adding the following in protonmail/protonmail.go (comment out the current user-agent line, around line 120):

req.Header.Set("User-Agent", "Ubuntu_20.04")
req.Header.Set("x-pm-appversion", "Other")

I used password authentication and I got the bridge password.

@User10987654321
Copy link
Author

Okay, adding req.Header.Set("x-pm-appversion", "Other") on line 123 of ./protonmail/protonmail.go got me the bridge password after using go build ./cmd/hydroxide/main.go and ./main auth user and providing the user's password

@User10987654321
Copy link
Author

User10987654321 commented May 11, 2023

Include git commit of this update and update aur package to include this maybe...

AvalancheBreakdown added a commit to AvalancheBreakdown/hydroxide that referenced this issue May 18, 2023
fix emersion#252 by adding;

```
req.Header.Set("x-pm-appversion", "Other")
```

on line 123
oxalica added a commit to oxalica/nixos-config that referenced this issue Jun 21, 2023
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 a pull request may close this issue.

2 participants