mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
revert: use username if greater than 1 char long
This commit is contained in:
parent
edaf35441c
commit
0b68b106d6
@ -261,10 +261,6 @@ document.addEventListener('DOMContentLoaded', (event) => {
|
||||
function locateFields(formDataObj: any) {
|
||||
const inputs = Array.from(document.getElementsByTagName('input'));
|
||||
formDataObj.usernameEl = locateField(formDataObj.formEl, formDataObj.data.username, inputs);
|
||||
if (formDataObj.usernameEl != null && formDataObj.usernameEl.value.length > 0 &&
|
||||
formDataObj.usernameEl.value.length < 2) {
|
||||
formDataObj.usernameEl = null;
|
||||
}
|
||||
if (formDataObj.usernameEl != null && formDataObj.data.password != null) {
|
||||
formDataObj.passwordEl = locatePassword(formDataObj.formEl, formDataObj.data.password, inputs, true);
|
||||
} else if (formDataObj.data.passwords != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user