如何提示Google Smart Lock使用特定的输入字段作为网站中的用户名 [英] How to hint Google Smart Lock to use a specific input field as the username in a website

查看:123
本文介绍了如何提示Google Smart Lock使用特定的输入字段作为网站中的用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找有关如何提示Google Smart Lock for Chrome使用特定输入字段作为与用户名关联的输入字段的文档,而没有任何运气.

I've been trying to search for some documentation on how to hint Google Smart Lock for Chrome to use a specific input field as the one associated with the username without any luck.

对于密码,它可以像使用type="password"一样完美地工作,但是当它归结为多字段形式的用户名时,其中用户名没有在密码之前指定,或者不是它选择的形式中的第一个字段表单中的另一个字段作为用户名.

For the password it works perfectly as it is using type="password" but when it comes down to the username in a multi field form, where the username is not specified before the password or not as the first field in the form it picks another of the fields in the form as the username.

有人知道如何提示Google Smart Lock使用特定的输入字段作为用户名吗?

Does anyone have any clue on how to hint Google Smart Lock to use a specific input field as the username?

推荐答案

Google智能锁是chrome的内置功能,在firefox上具有相同的功能.它根据最后输入的type ="password"来检测密码字段将被保存. 这是我在FireFox和Chrome上测试过的一些内容

Google smart lock is a build-in feature of chrome, there is the same function on firefox. It based on the last input type="password" to detect password field would be saved. Here are some things I have tested on FireFox and Chrome

  1. Chrome:
    • 基于最后一个输入类型的密码(您甚至有两个以上的输入密码元素)
    • 如果最后2个输入类型的密码具有相同的值->决定保存密码
    • 从第一个输入类型的密码(不是不是隐藏的类型也不是禁用)中查找上方的输入类型文本来选择它以用户名
  1. Chrome:
    • Based on the last input type password (you even have more than 2 input password elements)
    • If 2 last input type password has the same value -> decide to save password
    • Look up to find an upper input type text from the first input type password (Not a hidden type nor disabled) to pick it as username
  • 基于最后一个输入类型的密码(您甚至有两个以上的输入密码元素)
  • 如果最后2个输入类型的密码具有相同的值->决定保存密码
  • 从第一个输入类型密码(不是 隐藏类型)中查找上方的输入类型文本,以将其选择为用户名 ,请注意,禁用FF allow输入是用户名:)
  • Based on the last input type password (you even have more than 2 input password elements)
  • If 2 last input type password has the same value -> decide to save password
  • Look up to find an upper input type text from the first input type password (Not a hidden type) to pick it as username, note that FF allow input disabled is an username :)

这篇关于如何提示Google Smart Lock使用特定的输入字段作为网站中的用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆