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

Local development: cannot get past initial login screen #343

Open
3 tasks done
dangzan opened this issue Aug 31, 2023 · 2 comments
Open
3 tasks done

Local development: cannot get past initial login screen #343

dangzan opened this issue Aug 31, 2023 · 2 comments

Comments

@dangzan
Copy link

dangzan commented Aug 31, 2023

We are happy to answer your questions about the code or discuss technical ideas.

Please complete the following checklist (by adding [x]):

  • I have searched open and closed issues for duplicates
  • This isn't a feature request
  • This is not a report about my app not working as expected

I am following the "Getting Started" instructions in the root README. After running yarn workspace proton-mail start and navigating to localhost:8080 in my browser, I am met with a prompt for username and password. When I enter one, a Human Verification modal opens that again prompts me for a username and password. When I attempt to submit one, nothing happens. There are no other inputs, links, or options on either of the aforementioned pages/components. I have found other issues here about dealing with captchas, but none about local dev app being inaccessible due to login prompt.

  • Is there a particular username and password I am supposed to supply?
  • Are there any other instructions for running the app locally that are not referenced in the project root's README?
  • Am I supposed to be seeing username and password prompts on the Human Verification screen?

I am using node v18.17.1 and yarn v3.6.2. Thank you for any help you can provide.

@jonhermansen
Copy link

jonhermansen commented Oct 8, 2023

Hey @dangzan, not sure if this is helpful for you anymore, but I'm able to test changes locally with the following workaround:

yarn workspace proton-account start
# Browse to http://127.0.0.1:8080 in Firefox and log in, wait until you reach Dashboard screen
# Press Ctrl+C in terminal to kill old webpack process, we'll start a new one now
yarn workspace proton-mail start

After the webpack compilation step, your open browser tab should automatically refresh and should redirect you to your e-mail inbox. At least I've tested this with username/password login, not sure if it will work with 2FA, results may vary.

@razzius
Copy link

razzius commented Mar 29, 2024

@jonhermansen on the current latest main branch, even when I use your workaround, I'm still blocked by the captcha not loading.

After I enter my login information on localhost, first it requests a URL like

http://localhost:8080/api/core/v4/captcha?Token=&ForceWebMessaging=1

That responds with an html page with a script embedded, that constructs a url in javascript:

    var url = "\/captcha\/v1\/assets\/?purpose=login";
    // ...

Then it attempts to load that URL http://localhost:8080/captcha/v1/assets/?purpose=login into an iframe, however that URL just loads the app again in what looks like a single-page application catch-all 404 handler sort of route. This loads the login page again, so I'm stuck in a loop:

Screen Shot 2024-03-28 at 11 53 19 PM


Has anybody got a local login working lately?

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