Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Change password generator to use ColoredPassword#686

Merged
kspearrin merged 5 commits intomasterfrom
Fix-GeneratorColoredPassword
Jan 3, 2020
Merged

Change password generator to use ColoredPassword#686
kspearrin merged 5 commits intomasterfrom
Fix-GeneratorColoredPassword

Conversation

@devsecdan
Copy link
Copy Markdown
Mannequin

@devsecdan devsecdan mannequin commented Jan 1, 2020

Passwords displayed in the password generator are not colour coded like they are on other platforms. This pull request changes the password generator password to be colour coded.

https://community.bitwarden.com/t/color-coded-password-not-working-on-android/9594

@kspearrin
Copy link
Copy Markdown
Mannequin

kspearrin mannequin commented Jan 2, 2020

This was intentionally not implemented on this page because it causes performance issues. I don't have a solution at this time.

@devsecdan
Copy link
Copy Markdown
Mannequin Author

devsecdan mannequin commented Jan 2, 2020

I see the issue and belive I've found a solution. Using a HTML formatted string seems to have significantly better performance than FormattedString.

I see no noticable performance impact now.

Comment thread src/App/Utilities/PasswordFormatter.cs Outdated
Comment thread src/App/Utilities/PasswordFormatter.cs Outdated
Comment thread src/App/Utilities/PasswordFormatter.cs Outdated
Comment thread src/App/Utilities/PasswordFormatter.cs Outdated
Comment thread src/App/Utilities/PasswordFormatter.cs Outdated
Comment thread src/App/Utilities/PasswordFormatter.cs Outdated
@kspearrin
Copy link
Copy Markdown
Mannequin

kspearrin mannequin commented Jan 3, 2020

Awesome! We can also apply this to the passwords on the password history and password generator history page.

@devsecdan
Copy link
Copy Markdown
Mannequin Author

devsecdan mannequin commented Jan 3, 2020

Good suggestions 👍

I'll have those things fixed, and will apply it to the history pages tomorrow.

@devsecdan devsecdan mannequin requested a review from kspearrin January 3, 2020 02:12
@devsecdan
Copy link
Copy Markdown
Mannequin Author

devsecdan mannequin commented Jan 3, 2020

Used a converter class for the history pages. Looks clean to me, but not sure if there's a better way.

kspearrin
kspearrin mannequin approved these changes Jan 3, 2020
@kspearrin kspearrin mannequin merged commit a9dacd5 into master Jan 3, 2020
@devsecdan devsecdan mannequin deleted the Fix-GeneratorColoredPassword branch January 4, 2020 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants