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:
parent
9244164487
commit
cf0bc12aa1
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 84aab0cb24b8418c625c28c79e8c190861531c5f
|
||||
Subproject commit d61794265a12076b765876b52cef597862727b1f
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user