mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-19 18:17:22 -05:00
check that module exists before login check
This commit is contained in:
@@ -26,7 +26,7 @@ class Lucida {
|
|||||||
for (const i in this.logins) {
|
for (const i in this.logins) {
|
||||||
const credentials = this.logins[i]
|
const credentials = this.logins[i]
|
||||||
const module = this.modules[i]
|
const module = this.modules[i]
|
||||||
if ('login' in module) {
|
if (module && 'login' in module) {
|
||||||
await module.login?.(credentials.username, credentials.password)
|
await module.login?.(credentials.username, credentials.password)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user