This commit is contained in:
rustdesk
2021-04-11 01:34:26 +08:00
parent 2648a45f33
commit 83f97a85fb
5 changed files with 26 additions and 8 deletions

View File

@@ -26,15 +26,28 @@
}
}
}]
},{
"type": "textfield",
"desc": "Registered email, check http://rustdesk.com/server for more information",
"subitems": [{
"key": "email",
"desc": "Email",
"validator": {
"allowBlank": false,
"regex": {
"expr": "/^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$/",
"errorText": "Invalid email format"
}
}
}]
},{
"type": "textfield",
"desc": "Only allow the client with the same key",
"subitems": [{
"key": "key",
"desc": "Key",
"defaultValue": "21117",
"validator": {
"allowBlank": True,
"allowBlank": true
}
}]
}]