mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-23 08:58:52 +00:00
allow set empty permanent password to delete it
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
65a0276c58
commit
16165dae27
2 changed files with 2 additions and 2 deletions
|
|
@ -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.");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -958,7 +958,7 @@ class PasswordArea: Reactor.Component {
|
|||
if (!res) return;
|
||||
var p0 = (res.password || "").trim();
|
||||
var p1 = (res.confirmation || "").trim();
|
||||
if (p0.length < 6) {
|
||||
if (p0.length < 6 && p0.length != 0) {
|
||||
return translate("Too short, at least 6 characters.");
|
||||
}
|
||||
if (p0 != p1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue