iOS密码自动填充建议使用新密码代替现有密码

时间:2018-10-04 21:47:28

标签: ios passwords autofill

启动时,我的应用程序中有“登录和注册”表单。

密码自动填充不断为现有密码字段建议“新的强密码”。我为现有字段明确将contentType设置为.password,为新密码字段将.newPassword设置为textContentType,但是iOS拒绝提供除“ New Strong Password”视图以外的任何内容。

我在做什么错了?

这是视图层次结构:

View Heirarchy

这是我设置每个字段的private sub protectOnce() me.Unprotect Password:="Anthem" me.Protect Password:="Anthem", AllowFormattingRows:=True, UserInterfaceOnly:=True end sub 的方式:

Setting the textContentTypes

这是每次您在登录时点击密码字段,iOS都会执行的操作:

iOS Creating a New Strong Password

1 个答案:

答案 0 :(得分:1)

文本字段内容类型.newPassword实际上将建议一个新密码而不是现有密码。 您应该使用文本字段内容类型.password来获取建议并自动填充密码