plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Inactive fa fa-eye icon on login page and popup screen

Open susanreenesaa opened this issue 7 years ago • 15 comments

The fa fa-eye icon on both the login page and popup screen is inactive( it doesn't not show any effect when clicked nor does it show the password) url http://localhost:3000/login# and http://localhost:3000/login or https://publiclab.org/login and https://publiclab.org/login# image image

expected to show the user password when clicked

susanreenesaa avatar Oct 21 '19 20:10 susanreenesaa

Hi, I'd like to claim this issue

mehnazyunus avatar Oct 22 '19 18:10 mehnazyunus

@mehnazyunus Great! Let us know if you need help!

nstjean avatar Oct 23 '19 13:10 nstjean

The icon works fine on the modal which comes up when clicking Login on http://0.0.0.0:3000, so am I right in concluding that there is nothing wrong with _form.html.erb?

mehnazyunus avatar Oct 24 '19 14:10 mehnazyunus

@try to follow the links that I put above because there may be different models with the login fa fa-eye but this issue I only checked on those url's http://localhost:3000/login# and http://localhost:3000/login or https://publiclab.org/login and https://publiclab.org/login#. if it's okay, may @nstjean and @vaibhavgeek can help me verify that because on my side they are inactive

susanreenesaa avatar Oct 25 '19 20:10 susanreenesaa

please the issue is on the stated URl. this url (http://0.0.0.0:3000/) is different so it has no issue

susanreenesaa avatar Oct 25 '19 20:10 susanreenesaa

I am using Chrome on Linux and the fa-eye button isn't working on localhost:3000/login When I click the Login button it seems to depend what page I'm on when I click on it. If I'm on the main page of localhost:3000 it works as intended, but not if I'm on localhost:3000/login when I click on the Login button.

On publiclab.org I have the same results.

nstjean avatar Oct 25 '19 23:10 nstjean

What I meant was that since both URLs use the same html file, and one works and not the other, am I right in concluding that the issue is not with the html file? @nstjean any pointers to where I can start hunting for the bug?

mehnazyunus avatar Oct 26 '19 11:10 mehnazyunus

@vaibhavmatta can you please help out @mehnazyunus to locate the exact file to edit. thanks

susanreenesaa avatar Oct 30 '19 05:10 susanreenesaa

@susanreenesaa I will search for the file once and tell if I am able to find it or not. Thanks 🙂

vaibhavmatta avatar Oct 30 '19 06:10 vaibhavmatta

I believe it's here! You can use the needs code links label also to mark issues that need code links. Thanks all!

https://github.com/publiclab/plots2/blob/13b2355ded7c25b3fe12f871aba1282137c7cf6d/app/views/user_sessions/_form.html.erb#L41-L45

jywarren avatar Nov 21 '19 18:11 jywarren

ThankYou @jywarren

vaibhavmatta avatar Nov 22 '19 07:11 vaibhavmatta

Both the login path form and login popup reference same user_sessions/_form , then why one is working fine while the other one is not? Can anybody help me to understand the possible causes?

sssash18 avatar Jan 13 '20 18:01 sssash18

Hey all! I would like to work on this issue. I think in the login page, the form is also rendering due to the login popup, so it is creating a conflict. The console shows-

show password

We can add a check in views/layouts/_signupLoginModal.html.erb to render the login modal only if the current page is not the login page.

sakshi-2412 avatar Dec 22 '21 19:12 sakshi-2412

Can I open a PR for the same?

sakshi-2412 avatar Dec 23 '21 07:12 sakshi-2412

Hi @sakshi-2412, you can go ahead and open a PR. Feel free to reach out if you need any assistance.

TildaDares avatar Dec 24 '21 07:12 TildaDares