无法获取 newPassword 以生成强密码并自动填充 [英] Cannot get newPassword to generate strong password and autofill
问题描述
我正在尝试让自动填充工作.具体来说,这些 体验.前者是我更感兴趣的一个,但两个是为了有不止一个例子.
I'm trying to get autofill working. Specifically, either of these experiences. The former being the one I'm more interested in, but two for the sake of having more than one example.
除了生成强密码外,一切正常.
Everything is working except the strong password generation.
我已经正确配置了我的 AASA,我已经将所有内容都切换到 SSL,正确设置了 textContentType,我启用了自动填充提供程序的权利(阅读更多内容后我将其关闭,因为这不是我想要的(相同结果)).info.plist 中是否有我遗漏的内容?我正在使用钥匙串库来访问钥匙串?但我不认为是这样.
I've correctly configured my AASA, I've switched everything to SSL, textContentType is correctly set, I enabled the autofill provider entitlement (after reading more I'm turning it back off though since that's not what I want (same results)). Is there something in info.plist i'm missing? I am using a keychain library to access the keychain? but I don't think that's it.
特别是我试图进入这个屏幕
任何关于在哪里挖掘的建议也将不胜感激.在这一点上,我不确定我是否做错了什么,或者 ios12 是否是新的并且还不能正常工作.
Any suggestions of where to dig would also be appreciated. At this point I'm not sure if I'm doing something wrong, or if ios12 is new and doesn't work right yet.
相关代码?(这就是我在代码"中的全部内容,我是否在其他地方遗漏了什么?)
Relevant code? (This is all I have in the 'code', am I missing somethign somewhere else?)
pwTF.textContentType = .newPassword
pwTF.passwordRules = UITextInputPasswordRules(descriptor: "required: upper; required: lower; required: digit; max-consecutive: 2; minlength: 16;")
推荐答案
您是否有一个 UITextField 在同一页面上具有 usernameTextField.textContentType = .username
?我在添加用户名字段后才得到强密码建议.
Do you have a UITextField that has the usernameTextField.textContentType = .username
on the same page? I only got the strong password suggestion after I added the username field.
这篇关于无法获取 newPassword 以生成强密码并自动填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!