MES模块增加更多图标,调整使用方法

This commit is contained in:
MrZ626
2021-06-14 01:02:38 +08:00
parent 28cf3d878f
commit c17865d777
28 changed files with 150 additions and 125 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
MES.new(text.noUsername)return
MES.new('error',text.noUsername)return
elseif not STRING.simpEmailCheck(email)then
MES.new(text.wrongEmail)return
MES.new('error',text.wrongEmail)return
elseif #password==0 or #password2==0 then
MES.new(text.noPassword)return
MES.new('error',text.noPassword)return
elseif password~=password2 then
MES.new(text.diffPassword)return
MES.new('error',text.diffPassword)return
end
NET.register(username,email,password)
end