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:
1 parent
e646130d1f
commit
d9d5424318
6 files changed
+70
-13
No files matched your search
@@ -5,6 +5,15 @@
|
||||
|
||||
---
|
||||
|
||||
## 0.3.18 需要密码的服务器无法输入密码(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
| --- | --- |
|
||||
| 问题 | 「添加服务器」表单的密码框只在编辑已保存服务器时显示(`!_editNew`)。新服务器首次连接被 401 拒绝后只提示「需要密码或已保存的凭据」,却没有输入密码的地方 |
|
||||
| 修复 | 密码框始终显示,文案为「密码(如果需要)」,提示服务器未设置可留空;连接失败且错误提示需要密码时自动聚焦密码框;服务端返回 `Invalid credentials` 时显示为「密码错误,请重试」。新增 `test/servers_form_test.dart` 覆盖新服务器表单含密码框 |
|
||||
| 版本 | **0.3.18(code 318)** |
|
||||
---
|
||||
|
||||
## 0.3.17 设置页、侧栏底部服务器栏与追问处理行为(分支 `flutter`)
|
||||
|
||||
| 项 | 结果 |
|
||||
|
||||
Reference in new issue
Block a user