Skip to content

add passwordRules for textContentType newPassword#25407

Closed
pvinis wants to merge 1 commit intofacebook:masterfrom
pvinis:ios-new-password-rules
Closed

add passwordRules for textContentType newPassword#25407
pvinis wants to merge 1 commit intofacebook:masterfrom
pvinis:ios-new-password-rules

Conversation

@pvinis
Copy link
Copy Markdown
Contributor

@pvinis pvinis commented Jun 26, 2019

Summary

On textContentType newPassword on ios, there is another property called passwordRules on ios 12 that can give hints to the os to generate a password with specific requirements like here.
This is useful for apps that have a "register" screen with emailAddress/username and a newPassword fields, to let ios make a password that will satisfy the requirements and not one that might be not accepted after the user presses "register".

Changelog

[iOS] [Added] - PasswordRules for new password textContentType input fields

Test Plan

This is a bit harder, but to test you need to make an app that has associated domains with an apple-app-site-association file on that domain, enable iCloud Keychain on the test device, and then iOS will suggest a password, otherwise you will just get a warning on Xcode saying "Couldn't suggest password because of: blabla".

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 26, 2019
@react-native-bot react-native-bot added Platform: iOS iOS applications. Type: Enhancement A new feature or enhancement of an existing feature. labels Jun 26, 2019
@pvinis
Copy link
Copy Markdown
Contributor Author

pvinis commented Jun 26, 2019

Test Suite RNTesterIntegrationTests.xctest started
RCTLoggingTests
Too long with no output (exceeded 10m0s)

🤔

Copy link
Copy Markdown
Contributor

@cpojer cpojer left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @pvinis in dff3588.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jun 27, 2019
espipj added a commit to espipj/react-native that referenced this pull request Feb 8, 2020
espipj added a commit to espipj/react-native-website that referenced this pull request Feb 8, 2020
nearestnabors pushed a commit to facebook/react-native-website that referenced this pull request Feb 10, 2020
kaioduarte pushed a commit to kaioduarte/react-native-website that referenced this pull request Feb 24, 2020
M-i-k-e-l pushed a commit to M-i-k-e-l/react-native that referenced this pull request Mar 10, 2020
Summary:
On `textContentType` `newPassword` on ios, there is another property called `passwordRules` on ios 12 that can give hints to the os to generate a password with specific requirements like [here](https://developer.apple.com/password-rules/).
This is useful for apps that have a "register" screen with `emailAddress`/`username` and a `newPassword` fields, to let ios make a password that will satisfy the requirements and not one that might be not accepted after the user presses "register".

## Changelog

[iOS] [Added] - PasswordRules for new password textContentType input fields
Pull Request resolved: facebook#25407

Test Plan: This is a bit harder, but to test you need to make an app that has associated domains with an apple-app-site-association file on that domain, enable iCloud Keychain on the test device, and then iOS will suggest a password, otherwise you will just get a warning on Xcode saying "Couldn't suggest password because of: blabla".

Differential Revision: D16028684

Pulled By: cpojer

fbshipit-source-id: d22426e07f1db45d1f79f5dad81f1465a9701f0b
JackWillie added a commit to JackWillie/react-native-website that referenced this pull request Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: iOS iOS applications. Type: Enhancement A new feature or enhancement of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants