1
0
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:
Kyle Spearrin 2019-07-14 12:45:45 -04:00
parent edaf35441c
commit 0b68b106d6

View File

@ -261,10 +261,6 @@ document.addEventListener('DOMContentLoaded', (event) => {
function locateFields(formDataObj: any) { function locateFields(formDataObj: any) {
const inputs = Array.from(document.getElementsByTagName('input')); const inputs = Array.from(document.getElementsByTagName('input'));
formDataObj.usernameEl = locateField(formDataObj.formEl, formDataObj.data.username, inputs); 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) { if (formDataObj.usernameEl != null && formDataObj.data.password != null) {
formDataObj.passwordEl = locatePassword(formDataObj.formEl, formDataObj.data.password, inputs, true); formDataObj.passwordEl = locatePassword(formDataObj.formEl, formDataObj.data.password, inputs, true);
} else if (formDataObj.data.passwords != null) { } else if (formDataObj.data.passwords != null) {