diff --git a/src/App.tsx b/src/App.tsx
index 3e65f461..2894ede1 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -197,7 +197,7 @@ function AppContent() {
height: showProfile ? "100vh" : 0,
width: showProfile ? "100%" : 0,
position: showProfile ? "static" : "absolute",
- overflow: "hidden",
+ overflow: "auto",
}}
>
Use this guide to create JSON files for bulk importing SSH hosts. All examples are copyable.
- -ip - Host IP address (string)
-
- port - SSH port (number, 1-65535)
-
- username - SSH username (string)
-
- authType - "password" or "key"
-
- password - Required if authType is "password"
-
- key - SSH private key content (string) if authType is "key"
-
- keyPassword - Optional key passphrase
-
- keyType - Key type (auto, ssh-rsa, ssh-ed25519, etc.)
-
- name - Display name (string)
-
- folder - Organization folder (string)
-
- tags - Array of tag strings
-
- pin - Pin to top (boolean)
-
- enableTerminal - Show in Terminal tab (boolean, default: true)
-
- enableTunnel - Show in Tunnel tab (boolean, default: true)
-
- enableFileManager - Show in File Manager tab (boolean, default: true)
-
- defaultPath - Default directory path (string)
-
- tunnelConnections - Array of tunnel objects
-
- sourcePort - Local port (number)
-
- endpointPort - Remote port (number)
-
- endpointHost - Target host name (string)
-
- maxRetries - Retry attempts (number, default: 3)
-
- retryInterval - Retry delay in seconds (number, default: 10)
-
- autoStart - Auto-start on launch (boolean, default: false)
-
- {
- "hosts": [
- {
- "name": "Web Server",
- "ip": "192.168.1.100",
- "port": 22,
- "username": "admin",
- "authType": "password",
- "password": "your_password",
- "folder": "Production",
- "tags": ["web", "production"],
- "pin": true,
- "enableTerminal": true,
- "enableTunnel": false,
- "enableFileManager": true,
- "defaultPath": "/var/www"
- }
- ]
-}
-
- Enter the 6-digit code from the docker container logs for user: {localUsername}
diff --git a/src/ui/User/PasswordReset.tsx b/src/ui/User/PasswordReset.tsx index 88acec53..19fb4724 100644 --- a/src/ui/User/PasswordReset.tsx +++ b/src/ui/User/PasswordReset.tsx @@ -1,8 +1,112 @@ import {Card, CardContent, CardDescription, CardHeader, CardTitle} from "@/components/ui/card.tsx"; import {Key} from "lucide-react"; -import React from "react"; +import React, {useState} from "react"; +import {completePasswordReset, initiatePasswordReset, verifyPasswordResetCode} from "@/ui/main-axios.ts"; +import {Label} from "@/components/ui/label.tsx"; +import {Input} from "@/components/ui/input.tsx"; +import {Button} from "@/components/ui/button.tsx"; +import {Alert, AlertDescription, AlertTitle} from "@/components/ui/alert.tsx"; + +interface PasswordResetProps { + userInfo: { + username: string; + is_admin: boolean; + is_oidc: boolean; + totp_enabled: boolean; + } +} + +export function PasswordReset({userInfo}: PasswordResetProps) { + const [error, setError] = useState- Password change functionality can be implemented here -
+ <> + {resetStep === "initiate" && !resetSuccess && ( + <> +Enter the 6-digit code from the docker container logs for + user: {userInfo.username}
+Enter your new password for + user: {userInfo.username}
+