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

Show password feature #1463

Closed

Conversation

arjunanand23
Copy link

Attempted to add feature where password could be shown/hidden. Currently works if another character is entered but does not take place immediately.

@arjunanand23 arjunanand23 changed the title Show password branch Show password feature Apr 22, 2023
@martinbedouret
Copy link
Collaborator

awesome @arjunanand23 !
@tomivm Could you please take a look?

@tomivm tomivm linked an issue May 24, 2024 that may be closed by this pull request
endAdornment: <InputAdornment position="end">
<IconButton
aria-label="toggle password visibility"
onClick={() => { showPassword = !showPassword; }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line is problematic, updating a variable instead of state

Copy link
Collaborator

@tomivm tomivm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use State instead of a variable

@@ -49,6 +59,8 @@ export class Login extends Component {

const isButtonDisabled = isLogging || !!loginStatus.success;

var showPassword = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A state should be used for this. This is the reason why you need to type a new character to see the password.

@shayc shayc closed this May 26, 2024
@tomivm
Copy link
Collaborator

tomivm commented May 27, 2024

completed on #1700 PR

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

Successfully merging this pull request may close these issues.

Toggle password visibility
4 participants