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

Browser Does not remember username and password #31

Closed
dennyabrain opened this issue Jan 11, 2022 · 10 comments
Closed

Browser Does not remember username and password #31

dennyabrain opened this issue Jan 11, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@dennyabrain
Copy link
Contributor

Ambika reported that if she saves her username and login on firefox and tries to relogin using that credentials, it doesnt work. she has to relogin everytime.

@dennyabrain dennyabrain added the bug Something isn't working label Jan 11, 2022
@dennyabrain
Copy link
Contributor Author

so, first of all I am not sure if its a browser bug or react bug, since this codebase is not well documented, i was hoping if someone could do some research on it and revert with how this can be fixed.
The UI code for the login page is here - https://github.com/tattle-made/OGBV/blob/main/annotators/annotation-ui/src/pages/login.jsx
we use Grommet for ui components.

@dennyabrain
Copy link
Contributor Author

fyi, the code for the annotation UI is limited to the annotators folder of this repo.
in the absence of documentation, setting up the backend without my assistance would require understanding of nodejs/express AND sequelize ORM so I am hoping this task can be fixed purely by making changes on the UI layer.

@dennyabrain
Copy link
Contributor Author

and if that is not possible, then happy to schedule a call to go over setting this up locally and document it in the process.

@dennyabrain
Copy link
Contributor Author

Quick Instructions to get the project running

  1. run docker-compose up to bring up the sql database and a database GUI
  2. cd into annotators/backend/sequelize and run npx sequelize-cli db:migrate - this will create the tables in db
  3. run npx sequelize-cli db:seed --seed 20211115172651-beta-test - this will run the script located here and insert users named tarunima, arnav etc. You will have to check the db to see their password. which is stored in plain text for now.

@dennyabrain
Copy link
Contributor Author

If this is your first time using sequelize, i suggest spending sometime reading its documentation and specifically this page to familiarise yourself with migrations and seeding

@dennyabrain
Copy link
Contributor Author

@Siddhant-K-code could you also look into what are the best practices to developing login form. From a cursory research that I did, it seems like if we implement our login section as part of an html form and add the attribute autocomplete to the username and password field, the browser should take care of the rest.
ref : https://www.w3schools.com/TagS/att_input_autocomplete.asp

can you investigate if

  1. there's more to it
  2. if this fixes this bug

@tarunima
Copy link
Collaborator

tarunima commented Feb 4, 2022

@dennyabrain can you confirm that this can be closed?

@dennyabrain
Copy link
Contributor Author

Not yet. Its not fixed yet and we dont have a solution so far

@dennyabrain
Copy link
Contributor Author

Not relevant anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants