add the arl login work

This commit is contained in:
aria
2024-07-29 14:58:05 -04:00
parent 38a06fea80
commit d48482abac
3 changed files with 29 additions and 29 deletions

View File

@@ -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)
}
}
}