You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
Aside from the [weak/strong self dance](http://dhoerl.wordpress.com/2013/04/23/i-finally-figured-out-weakself-and-strongself/), this code is pretty straight forward:
@@ -139,18 +142,21 @@ Adding 1Password to your registration screen is very similar to adding 1Password
139
142
// Add as many string fields as you please.
140
143
}
141
144
};
142
-
145
+
146
+
// Password generation options are optional, but are very handy in case you have strict rules about password lengths
// retrieve any additional fields that were passed in newLoginDetails dictionary
164
170
}];
165
171
}
@@ -169,16 +175,51 @@ You'll notice that we're passing a lot more information into 1Password than just
169
175
170
176
An important thing to notice is the `AppExtensionURLStringKey` is set to the exact same value we used in the login scenario. This allows users to quickly find the login they saved for your app the next time they need to sign in.
171
177
178
+
### Use Case #3: Change Password
172
179
173
-
### Use Case #3: Web View Support
180
+
Allow your users to easily change passwords for saved logins in 1Password directly from your change password page. The old and the newly generated are returned to you so you can update your UI and complete the password change process.
181
+
182
+
Adding 1Password to your change password screen is very similar to adding 1Password to your login and registration screens. In this case you'll wire the 1Password button to an action like this:
The 1Password App Extension is not limited to filling native UIs. With just a little bit of extra effort, users can fill `UIWebView`s and `WKWebView`s within your application as well.
176
213
177
214
Simply add a button to your UI with its action assigned to this method in your web view's UIViewController:
0 commit comments