Merge pull request #8 from ChristopherLR/master

check for undefined in username and password
master
Warinyourself 2 years ago committed by GitHub
commit 360ca0c3a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -280,9 +280,9 @@ class LightdmNode extends LightdmWebkit {
window.lightdm?.show_prompt?.connect((_message, type) => {
console.log({ _message, type })
if (!window.lightdm) return
if (type === 0) {
if (type === 0 && this._username !== undefined) {
window.lightdm.respond(this._username)
} else if (type === 1 && window.lightdm.in_authentication) {
} else if (type === 1 && window.lightdm.in_authentication && this._password !== undefined) {
window.lightdm.respond(this._password)
}
})

Loading…
Cancel
Save