nrkno / transcriber-frontend

MIT License
32 stars 12 forks source link

Can't login...login page just loops back to same page. #80

Closed dariushazimi closed 5 years ago

dariushazimi commented 5 years ago

Hi,

I have deployed the backend and frontend (correctly I think) But when I click on the login button, it just loops back to the same page and does not have a place to add user id/pass or registration.

The readme on the main page localhost:8080 says that "Use of the tool requires logging in with your NRK account. "

Is this tool for your internal use only or can anyone try it out? How can I essentially register and try it?

Thanks image

baardl commented 5 years ago

Hi @dariushazimi

I´m working on a feature to solve this problem. You can follow this feature branch https://github.com/nrkno/transcriber-frontend/tree/feature/local-login.

The username and password defined in .env has to be set in Firebase Authentication

Best regards Bård

dariushazimi commented 5 years ago

Hi @baardl ,

I did add the user to Firebase and modified the .env file with the parameters but still redirects to the home page. I think the issue also is with the/src/components/app.tsxwhere <Redirect from="/login" to="/" /> I could be wrong.

Is there any instruction on how to deploy to prod for testing? Been looking around but can't find how to deploy to prod so that I can test the transcription. Any help would be great. Thanks. Dariush

dariushazimi commented 5 years ago

Disregard. your update resolved the issue with local login and dev env. Please mark as resolved. Thanks 🎉 👍 💯

baardl commented 5 years ago

Thank you, @dariushazimi