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

Add passphrase generator to iOS Extensions #1230

Merged
merged 5 commits into from
Jan 25, 2021

Conversation

eliykat
Copy link
Member

@eliykat eliykat commented Jan 21, 2021

Objective

Fix #620: the iOS autofill and extension password generator does not give the user the options to generate a passphrase.

Edit: I also noticed that the "Avoid ambiguous characters" switch was missing when generating a password, so I added that control as well.

Code changes

  • add required controls and logic to iOS.Core/Controllers/PasswordGeneratorViewController.cs.
  • add some event handlers to FormEntryTableViewCell and PickerTableViewCell so that we can regenerate the password when their value changes
  • let developer specify a custom indentation for FormEntryTableViewCell objects - this is required to line it up with the other controls (not sure if there is a better way of doing this)

Screenshots

New passphrase controls:

Added "Avoid ambiguous characters" control (note that this now pushes the "Option defaults are set..." text off-screen on an iPhone 12 - not sure if that's worth worrying about):

@eliykat eliykat requested a review from a team January 21, 2021 01:30
@eliykat eliykat force-pushed the passphrase-generator-in-extension branch from 990bc2d to 2319ff7 Compare January 21, 2021 02:03
Copy link
Contributor

@mpbw2 mpbw2 left a comment

Choose a reason for hiding this comment

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

Looks and works great! Hold off on merging this until @cscharf gives the all-clear.

@MGibson1 MGibson1 added the hold do not merge yet label Jan 21, 2021
@addisonbeck
Copy link

Oh man I can't wait for this one, it's been bugging me since moving to using passphrases. Thanks @eliykat !

@eliykat eliykat removed the hold do not merge yet label Jan 25, 2021
@eliykat eliykat merged commit 9b6bf13 into master Jan 25, 2021
@eliykat eliykat deleted the passphrase-generator-in-extension branch January 25, 2021 20:23
@GolfAMV
Copy link

GolfAMV commented Jan 25, 2021

Great work @eliykat, thank you!

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.

Passphrase option missing from password generator in iOS “Extension”
5 participants