mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 00:13:01 +08: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
@ -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 New Issue
Block a user