fix: test connection passing auth instead of password
- testConnection now maps auth -> password for Redis service - fixes test connection failing even with correct credentials
This commit is contained in:
Generated
+1
-1
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^5.2.0",
|
||||
"electron": "^33.4.0",
|
||||
"electron": "^33.4.11",
|
||||
"electron-builder": "^25.1.0",
|
||||
"electron-vite": "^3.0.0",
|
||||
"element-plus": "^2.9.0",
|
||||
|
||||
+5
-1
@@ -6,6 +6,10 @@
|
||||
"private": true,
|
||||
"main": "./out/main/index.js",
|
||||
"type": "module",
|
||||
"allowScripts": {
|
||||
"electron": true,
|
||||
"esbuild": true
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "electron-vite dev",
|
||||
"build": "electron-vite build",
|
||||
@@ -24,7 +28,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^5.2.0",
|
||||
"electron": "^33.4.0",
|
||||
"electron": "^33.4.11",
|
||||
"electron-builder": "^25.1.0",
|
||||
"electron-vite": "^3.0.0",
|
||||
"element-plus": "^2.9.0",
|
||||
|
||||
@@ -128,7 +128,13 @@ export const useConnectionStore = defineStore('connection', () => {
|
||||
}): Promise<{ success: boolean; error?: string }> {
|
||||
const testId = `test_${Date.now()}`
|
||||
try {
|
||||
const result = await window.electronAPI.redis.connect(testId, opts)
|
||||
const result = await window.electronAPI.redis.connect(testId, {
|
||||
host: opts.host,
|
||||
port: opts.port,
|
||||
password: opts.auth || undefined,
|
||||
username: opts.username || undefined,
|
||||
tls: opts.tls,
|
||||
})
|
||||
if (result.success) {
|
||||
await window.electronAPI.redis.disconnect(testId)
|
||||
return { success: true }
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user