暂时使用未完成的MES模块替换LOG模块

This commit is contained in:
MrZ626
2021-06-13 02:06:38 +08:00
parent 17e67c674b
commit 7075d7d5b2
38 changed files with 211 additions and 206 deletions

View File

@@ -6,13 +6,13 @@ local function register()
local password= WIDGET.active.password:getText()
local password2=WIDGET.active.password2:getText()
if #username==0 then
LOG.print(text.noUsername,'warn')return
MES.new(text.noUsername)return
elseif not STRING.simpEmailCheck(email)then
LOG.print(text.wrongEmail,'warn')return
MES.new(text.wrongEmail)return
elseif #password==0 or #password2==0 then
LOG.print(text.noPassword,'warn')return
MES.new(text.noPassword)return
elseif password~=password2 then
LOG.print(text.diffPassword,'warn')return
MES.new(text.diffPassword)return
end
NET.register(username,email,password)
end