mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
allow set empty permanent password to delete it
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -486,7 +486,7 @@ void setPasswordDialog() async {
|
||||
errMsg1 = "";
|
||||
});
|
||||
final pass = p0.text.trim();
|
||||
if (pass.length < 6) {
|
||||
if (pass.length < 6 && pass.isNotEmpty) {
|
||||
setState(() {
|
||||
errMsg0 = translate("Too short, at least 6 characters.");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user