mirror of
https://git.gay/lucida/lucida
synced 2025-12-11 20:15:14 +01:00
check that module exists before login check
This commit is contained in:
parent
8da27c3a4c
commit
1c92c64111
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user