Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ChangePasswordViewController: UIViewController {
// If YES, the 1Password will guarantee that the generated password will contain at least one digit (number between 0 and 9). Passing NO will not exclude digits from the generated password.
AppExtensionGeneratedPasswordRequireDigitsKey: (true),

// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list bellow). Passing NO with will exclude symbols from the generated password.
// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list below). Passing NO will not exclude symbols from the generated password.
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is incorrect. If you pass no it will exclude symbols.

You can test this on a device in fact if you wish. Just change the setting to NO, and you'll see no symbols are in the generated password when registering or changing. If you leave it at YES, it will guarantee at least one symbol exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I appreciate you taking a look at this! I wouldn't want to put the wrong info in there. Unfortunately, when I test it, it looks like you're wrong. I hate to suggest that, so maybe there's something more complicated going on?

I tested using the master branch, and changing RegisterViewController.m in App Demo for iOS in Obj-C w/1Password 6.5.4 on a 7+. RequireSymbols seems to simply change the minimum number of symbols allowed between 0 and 1. With NO, I was still able to generate, save, & return to the app a password with symbols.

Is it possible the behavior differs based on the version of 1Password installed? I'd be really surprised if it depended on which sample app I use (although I only tested one). Maybe a bug in 1Password? Maybe just a mistake on your part?

If it looks like something more complicated, should we move this discussion to an issue?

Thanks again

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @e28eta Thanks for writing back. I think here is fine for now, but if this next bit of discussions doesn't work we'll move it to a private discussion and figure it out. That way we're not potentially spamming others following the project with potentially unnecessary email :)

So, the first thing I want to make sure about is that as you're editing this in the "RegisterViewController" that you are clicking "Sign up" in the ACME app, because the Register view is handling is handling "sign up" in the app itself. Each view is hardcoding these separately, so if you change it in one place, but not the other, the other views will still behave with the YES, as that's default in each view in the samples.

The other thing is that I noticed the same thing you were seeing but after removing the ACME app from the simulator (or my device) and reinstalling the new build behaved as I outlined previously, that NO will not include any symbols. I have a feeling that the simulator/device has an out of date copy or perhaps Xcode isn't building or packaging properly with this small of a change.

Once I reinstall fully it behaves as I described:

YES = 1 symbol is always present
NO = no symbols present

Any chance that the behavior is more in line with this bit of info? If not, please shoot me an email support at agilebits dot com. If you mention my name "Kyle Swank" it should tag me in our system and notify me that you've written in. I try to check our support system's email for new messages every few hours.

Thanks for diving into this. We really do value when our community takes the time to help out and like you, I want to get this right so lets make sure we get it figured out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have not seen 1Password disallow symbols as a result of changing RequireSymbols. So, email sent, thanks!

Note that I haven't been deleting/reinstalling 1Password (v6.5.4), just the Acme sample app.

AppExtensionGeneratedPasswordRequireSymbolsKey: (true),

// Here are all the symbols available in the the 1Password Password Generator:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class RegisterViewController: UIViewController {
// If YES, the 1Password will guarantee that the generated password will contain at least one digit (number between 0 and 9). Passing NO will not exclude digits from the generated password.
AppExtensionGeneratedPasswordRequireDigitsKey: (true),

// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list bellow). Passing NO with will exclude symbols from the generated password.
// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list below). Passing NO will not exclude symbols from the generated password.
Copy link
Contributor

Choose a reason for hiding this comment

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

Likewise, with the previous comment.

AppExtensionGeneratedPasswordRequireSymbolsKey: (true),

// Here are all the symbols available in the the 1Password Password Generator:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ - (IBAction)changePasswordIn1Password:(id)sender {
// If YES, the 1Password will guarantee that the generated password will contain at least one digit (number between 0 and 9). Passing NO will not exclude digits from the generated password.
AppExtensionGeneratedPasswordRequireDigitsKey: @(YES),

// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list bellow). Passing NO with will exclude symbols from the generated password.
// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list below). Passing NO will not exclude symbols from the generated password.
Copy link
Contributor

Choose a reason for hiding this comment

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

And here.

AppExtensionGeneratedPasswordRequireSymbolsKey: @(YES),

// Here are all the symbols available in the the 1Password Password Generator:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ - (IBAction)saveLoginTo1Password:(id)sender {
// If YES, the 1Password will guarantee that the generated password will contain at least one digit (number between 0 and 9). Passing NO will not exclude digits from the generated password.
AppExtensionGeneratedPasswordRequireDigitsKey: @(YES),

// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list bellow). Passing NO with will exclude symbols from the generated password.
// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list below). Passing NO will not exclude symbols from the generated password.
Copy link
Contributor

Choose a reason for hiding this comment

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

and here

AppExtensionGeneratedPasswordRequireSymbolsKey: @(YES),

// Here are all the symbols available in the the 1Password Password Generator:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Adding 1Password to your registration screen is very similar to adding 1Password
// If YES, the 1Password will guarantee that the generated password will contain at least one digit (number between 0 and 9). Passing NO will not exclude digits from the generated password.
AppExtensionGeneratedPasswordRequireDigitsKey: @(YES),

// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list bellow). Passing NO with will exclude symbols from the generated password.
// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list below). Passing NO will not exclude symbols from the generated password.
Copy link
Contributor

Choose a reason for hiding this comment

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

And here..

AppExtensionGeneratedPasswordRequireSymbolsKey: @(YES),

// Here are all the symbols available in the the 1Password Password Generator:
Expand Down Expand Up @@ -237,7 +237,7 @@ Adding 1Password to your change password screen is very similar to adding 1Passw
// If YES, the 1Password will guarantee that the generated password will contain at least one digit (number between 0 and 9). Passing NO will not exclude digits from the generated password.
AppExtensionGeneratedPasswordRequireDigitsKey: @(YES),

// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list bellow). Passing NO with will exclude symbols from the generated password.
// If YES, the 1Password will guarantee that the generated password will contain at least one symbol (See the list below). Passing NO will not exclude symbols from the generated password.
Copy link
Contributor

Choose a reason for hiding this comment

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

and lastly here.

AppExtensionGeneratedPasswordRequireSymbolsKey: @(YES),

// Here are all the symbols available in the the 1Password Password Generator:
Expand Down