mirror of
https://codeberg.org/lucida/lucida.git
synced 2026-11-14 07:37:24 -05:00
add the arl login work
This commit is contained in:
@@ -30,11 +30,11 @@ class Lucida {
|
||||
}
|
||||
async login() {
|
||||
if (!this.logins) throw new Error('No logins specified')
|
||||
for (const i in this.logins) {
|
||||
for (const i in this.modules) {
|
||||
const credentials = this.logins[i]
|
||||
const module = this.modules[i]
|
||||
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