安全性修复

This commit is contained in:
ErrorEncounterd 2020-10-07 12:59:35 +08:00 committed by GitHub
parent 7847d89a8a
commit ec146739e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,14 @@
},
methods: {
toUpdate: function () {
if (!TOOLS.isStdText(this.username)) {
TOOLS.pushMsgWindow("用户名不合法!请重新输入!");
return;
}
if (this.password.length < 6 || this.password.length > 18) {
TOOLS.pushMsgWindow("密码长度不正确!");
return;
}
var allowedServers = this.allowedServer.trim().split(' ');
var obj = {
newUsername: this.username,
@ -95,4 +103,4 @@
});
MI.rListener('onend', function () { });
</script>
</script>