Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

fix: resolves broken proton drive connectivity for account with 2fa enabled.

towfiqiefff40a8c88f
diff --git a/backend/src/utils/providers.ts b/backend/src/utils/providers.ts
index 47bdb7d..02a4ffe 100644
--- a/backend/src/utils/providers.ts
+++ b/backend/src/utils/providers.ts
@@ -323,16 +323,22 @@ export const providers: Record<string, ProviderConfig> = {
doc: '/storages/connecting-seafile',
settings: seafileSettings,
authTypes: ['password'],
- setup: creds => [
- 'url',
- creds.url,
- 'user',
- creds.user,
- 'pass',
- creds.pass,
- 'library',
- creds.library,
- ],
+ setup: creds => {
+ const config = [
+ 'url',
+ creds.url,
+ 'user',
+ creds.user,
+ 'pass',
+ creds.pass,
+ 'library',
+ creds.library,
+ ];
+ if (creds['2fa']) {
+ config.push('2fa', creds['2fa']);
+ }
+ return config;
+ },
features: providerFeatures['seafile'],
},
jottacloud: {
@@ -697,7 +703,13 @@ export const providers: Record<string, ProviderConfig> = {
doc: '/storages/connecting-proton-drive',
authTypes: ['password'],
settings: protondriveSettings,
- setup: creds => ['username', creds.username, 'password', creds.password],
+ setup: creds => {
+ const config = ['username', creds.username, 'password', creds.password];
+ if (creds['2fa']) {
+ config.push('2fa', creds['2fa']);
+ }
+ return config;
+ },
features: providerFeatures['protondrive'],
},
quatrix: {