Skip to content

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

fix: resolves Proton Drive connectivity issue

towfiqicd5ec6a5e585
diff --git a/backend/src/utils/providers.ts b/backend/src/utils/providers.ts
index 6969a33..2946729 100644
--- a/backend/src/utils/providers.ts
+++ b/backend/src/utils/providers.ts
@@ -720,13 +720,13 @@ export const providers: Record<string, ProviderConfig> = {
setup: creds => ['api_key', creds.api_key],
features: providerFeatures['pixeldrain'],
},
- proton: {
+ protondrive: {
name: 'Proton Drive',
doc: '/storages/connecting-proton-drive',
authTypes: ['password'],
settings: protondriveSettings,
setup: creds => ['username', creds.username, 'password', creds.password],
- features: providerFeatures['proton'],
+ features: providerFeatures['protondrive'],
},
quatrix: {
name: 'Quatrix by Maytech',
diff --git a/backend/src/utils/providers/_features.ts b/backend/src/utils/providers/_features.ts
index 52cd874..78c18d3 100644
--- a/backend/src/utils/providers/_features.ts
+++ b/backend/src/utils/providers/_features.ts
@@ -433,7 +433,7 @@ const providerFeatures = {
EmptyDir: true,
Hashing: true,
},
- 'proton': {
+ 'protondrive': {
Purge: true,
Copy: false,
Move: true,
diff --git a/backend/src/utils/providers/protondrive.ts b/backend/src/utils/providers/protondrive.ts
index 141d2a5..7ca3485 100644
--- a/backend/src/utils/providers/protondrive.ts
+++ b/backend/src/utils/providers/protondrive.ts
@@ -23,6 +23,7 @@ const protondriveSettings = [
label: '2FA Code',
value: '2fa',
fieldType: 'string',
+ authFieldType: 'password',
required: false,
default: '',
description: 'The 2FA code for your Proton account, if 2FA is enabled.',
@@ -99,8 +100,7 @@ const protondriveSettings = [
fieldType: 'string',
required: false,
default: '[email protected]+rclone"',
- description:
- 'The app version string sent with every API request.',
+ description: 'The app version string sent with every API request.',
command: '--protondrive-app-version',
},
{
diff --git a/frontend/public/providers/proton.png b/frontend/public/providers/protondrive.png
similarity index 100%
rename from frontend/public/providers/proton.png
rename to frontend/public/providers/protondrive.png