aquiladev/remix-mythx-plugin

Hide credentials form after logging in

Gtonizuka opened this issue · 3 comments

After clicking on “save”, credentials address and password still stays there and there is no user feedback that let the user know if the login worked correctly or not. We should have a message that says "logged in correctly" and then hide that form. The user should still be able to re-open that form to log in with a different user or logout.

right now login executes each request to MythX, that is why I used button Save for user credentials, not Login. User has a message about wrong credentials when he presses Analyze button.

It is possible to store JWT in local storage after the first login, it will slightly more complicated to handle

in scope of #22 I implemented collapsing/expanding of credentials block

request to add the text “hide” next to icon V

Annotation 2019-07-15 162243

Annotation 2019-07-15 162300