简体   繁体   English

禁用 iOS11 更新密码 ActionSheet

[英]Disable iOS11 Update Password ActionSheet

Is there a way to disable the iOS11's "Update Password" ActionSheet (Part of iOS11's password autofill feature https://developer.apple.com/documentation/security/password_autofill/ ) which is presented after the user logs in and I navigate to a new ViewController.有没有办法禁用 iOS11 的“更新密码”操作表(iOS11 的密码自动填充功能https://developer.apple.com/documentation/security/password_autofill/ 的一部分),它在用户登录后显示,我导航到新的视图控制器。 Because sometimes it's presented even though the login operation was not successful.因为有时即使登录操作不成功也会出现。

I want to indicate to the OS that the login was not successful and therefore the password existing in the Keychain should not be replaced with the new one.我想向操作系统表明登录不成功,因此不应将钥匙串中现有的密码替换为新密码。

You can set nil to your text field, such that the AutoFill UI will not update password because there is no appropriate account to update.您可以将 nil 设置为您的文本字段,这样 AutoFill UI 将不会更新密码,因为没有合适的帐户可以更新。

With a little delay, you set the original text back to the text field.稍有延迟,您将原始文本设置回文本字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM