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": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^5.2.0",
|
"@vitejs/plugin-vue": "^5.2.0",
|
||||||
"electron": "^33.4.0",
|
"electron": "^33.4.11",
|
||||||
"electron-builder": "^25.1.0",
|
"electron-builder": "^25.1.0",
|
||||||
"electron-vite": "^3.0.0",
|
"electron-vite": "^3.0.0",
|
||||||
"element-plus": "^2.9.0",
|
"element-plus": "^2.9.0",
|
||||||
|
|||||||
+5
-1
@@ -6,6 +6,10 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"allowScripts": {
|
||||||
|
"electron": true,
|
||||||
|
"esbuild": true
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "electron-vite dev",
|
"dev": "electron-vite dev",
|
||||||
"build": "electron-vite build",
|
"build": "electron-vite build",
|
||||||
@@ -24,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^5.2.0",
|
"@vitejs/plugin-vue": "^5.2.0",
|
||||||
"electron": "^33.4.0",
|
"electron": "^33.4.11",
|
||||||
"electron-builder": "^25.1.0",
|
"electron-builder": "^25.1.0",
|
||||||
"electron-vite": "^3.0.0",
|
"electron-vite": "^3.0.0",
|
||||||
"element-plus": "^2.9.0",
|
"element-plus": "^2.9.0",
|
||||||
|
|||||||
@@ -128,7 +128,13 @@ export const useConnectionStore = defineStore('connection', () => {
|
|||||||
}): Promise<{ success: boolean; error?: string }> {
|
}): Promise<{ success: boolean; error?: string }> {
|
||||||
const testId = `test_${Date.now()}`
|
const testId = `test_${Date.now()}`
|
||||||
try {
|
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) {
|
if (result.success) {
|
||||||
await window.electronAPI.redis.disconnect(testId)
|
await window.electronAPI.redis.disconnect(testId)
|
||||||
return { success: true }
|
return { success: true }
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user