mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-12 14:47:24 -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) {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user