fix: a new server could not be given its password

The form only rendered the password field when editing a saved server
(!_editNew). Adding a password-protected instance therefore failed with
"需要密码或已保存的凭据" and offered nowhere to type it. The field is now
always shown ("密码(如果需要)", empty for a passwordless server); a failed
connect that asks for a password focuses it, and a rejected password reads
as "密码错误,请重试".

Adds test/servers_form_test.dart. 0.3.18 (318).
This commit is contained in:
blumia committed 2026-11-22 11:38:24 +08:00
1 parent e646130d1f
commit d9d5424318
6 files changed
+70 -13

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ name: openchamber
description: "A lightweight OpenChamber client for phones."
publish_to: 'none'
version: 0.3.17+317
version: 0.3.18+318
environment:
sdk: ^3.14.0