mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-10 09:16:16 +00:00
Update to recovery email management: makes the recoveryEmail field optional and adds the ability to disable recovery email verification per account. Added corresponding documentation and updated configuration examples.
This commit is contained in:
@@ -643,7 +643,9 @@ export class MicrosoftRewardsBot {
|
||||
}
|
||||
} catch {/* ignore */}
|
||||
this.currentAccountEmail = account.email
|
||||
this.currentAccountRecoveryEmail = account.recoveryEmail
|
||||
this.currentAccountRecoveryEmail = (typeof account.recoveryEmail === 'string' && account.recoveryEmail.trim() !== '')
|
||||
? account.recoveryEmail.trim()
|
||||
: undefined
|
||||
const runNumber = (this.accountRunCounts.get(account.email) ?? 0) + 1
|
||||
this.accountRunCounts.set(account.email, runNumber)
|
||||
log('main', 'MAIN-WORKER', `Started tasks for account ${account.email}`)
|
||||
|
||||
Reference in New Issue
Block a user