From ec146739e038dec3d683c94f233c268b5c59e043 Mon Sep 17 00:00:00 2001 From: ErrorEncounterd <401395069@qq.com> Date: Wed, 7 Oct 2020 12:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=80=A7=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/template/component/user.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/template/component/user.html b/public/template/component/user.html index d29902d..7bd9968 100644 --- a/public/template/component/user.html +++ b/public/template/component/user.html @@ -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 () { }); - \ No newline at end of file +