debug: add detailed logging to password verification
This commit is contained in:
@@ -71,7 +71,9 @@ export function setupCliIPC(mainWindow: BrowserWindow, cliManager: CliProcessMan
|
||||
return user
|
||||
})
|
||||
ipcMain.handle("users:login", async (_, payload: { id: string; password?: string }) => {
|
||||
console.log("[IPC:users:login] Attempting login for:", payload.id, "password length:", payload.password?.length)
|
||||
const ok = verifyPassword(payload.id, payload.password ?? "")
|
||||
console.log("[IPC:users:login] verifyPassword result:", ok)
|
||||
if (!ok) {
|
||||
return { success: false }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user