1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

allow notification bar username of length 0

This commit is contained in:
Kyle Spearrin 2019-07-14 11:21:30 -04:00
parent 9244164487
commit cf0bc12aa1
2 changed files with 3 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 84aab0cb24b8418c625c28c79e8c190861531c5f
Subproject commit d61794265a12076b765876b52cef597862727b1f

View File

@ -261,7 +261,8 @@ 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 < 2) {
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) {