init(user:serviceIdentifier:userInfo:)
Creates a request to upgrade from using a weak password to using a strong system-generated password.
Declaration
init(user: String, serviceIdentifier: ASCredentialServiceIdentifier, userInfo: [AnyHashable : Any]? = nil)Parameters
- user:
The user name of the account to upgrade.
- serviceIdentifier:
An identifier that represents a particular service that the user needs a credential for, like a web site.
- userInfo:
A dictionary that contains values to pass to your account modification extension.
Return Value
An initialized request object with details about the account to upgrade from using a weak password to a strong system-generated password.
Discussion
If your extension needs information to authenticate with your server, such as an authentication token, set it in the userInfo dictionary before calling this method.