mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
Reuse stored managed-NE credentials when opening WebCRT from topology.
Deep-link open was missing has_password/protocol, so SSH always prompted for login. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
71acbc747f
commit
bd97e1b875
4 changed files with 9 additions and 0 deletions
|
|
@ -89,6 +89,8 @@ class ManagedNeOut(BaseModel):
|
|||
port: int
|
||||
protocol: str
|
||||
username: str
|
||||
# True when a non-empty password ciphertext is stored (never returns the secret).
|
||||
has_password: bool = False
|
||||
connect_status: ConnectStatus
|
||||
connect_message: str
|
||||
connect_detail: str = ""
|
||||
|
|
|
|||
|
|
@ -201,6 +201,7 @@ def row_to_out(row: ManagedNE) -> ManagedNeOut:
|
|||
port=int(row.port or 22),
|
||||
protocol=str(row.protocol or "ssh"),
|
||||
username=str(row.username or ""),
|
||||
has_password=bool(str(row.password_enc or "").strip()),
|
||||
connect_status=status, # type: ignore[arg-type]
|
||||
connect_message=str(row.connect_message or "")[:500],
|
||||
connect_detail=str(row.connect_detail or "")[:8000],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue