mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
allow set empty permanent password to delete it
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user