check that module exists before login check

This commit is contained in:
hazycora 2023-09-17 01:09:25 -05:00
parent 8da27c3a4c
commit 1c92c64111
No known key found for this signature in database
GPG Key ID: 215AF1F81F86940E

View File

@ -26,7 +26,7 @@ class Lucida {
for (const i in this.logins) {
const credentials = this.logins[i]
const module = this.modules[i]
if ('login' in module) {
if (module && 'login' in module) {
await module.login?.(credentials.username, credentials.password)
}
}