加入邮箱格式检测
This commit is contained in:
@@ -69,6 +69,7 @@ return{
|
||||
registerFailed="Registration failed",
|
||||
netErrorCode="Network error code",
|
||||
noUsername="Please enter your username",
|
||||
wrongEmail="Wrong email address",
|
||||
noPassword="Please enter your password",
|
||||
diffPassword="Passwords don't match",
|
||||
errorMsg="An error has occurred and Techmino needs to restart.\nError info has been created, and you can send it to the author.",
|
||||
|
||||
@@ -69,6 +69,7 @@ return{
|
||||
registerFailed="Register failed",
|
||||
netErrorCode="Network error code",
|
||||
noUsername="Input username",
|
||||
wrongEmail="Wrong email address",
|
||||
noPassword="Input password",
|
||||
diffPassword="Password don't match",
|
||||
errorMsg="An e??o? h@s occ^__ed @nd Techmino n__ds to r_st@rt.\n&**o* in#o h@$ b==n cre@ted, @nd y0u c@n $&nd it to the @uth0r.",
|
||||
|
||||
@@ -30,8 +30,9 @@ return{
|
||||
|
||||
ranks={"菜","可","好","强","您"},
|
||||
|
||||
noUsername="账号密码都填不来?",
|
||||
noPassword="账号密码都填不来?",
|
||||
noUsername="账号填不来?",
|
||||
wrongEmail="邮箱不会填?",
|
||||
noPassword="密码填不来?",
|
||||
diffPassword="账号密码都填不来?",
|
||||
|
||||
acts={
|
||||
|
||||
@@ -69,6 +69,7 @@ return{
|
||||
registerFailed="注册失败",
|
||||
netErrorCode="网络错误码",
|
||||
noUsername="请填写用户名",
|
||||
wrongEmail="邮箱格式错误",
|
||||
noPassword="请填写密码",
|
||||
diffPassword="两次密码不一致",
|
||||
errorMsg="Techmino遭受了雷击,需要重新启动.\n我们已收集了一些错误信息,你可以向作者进行反馈.",
|
||||
|
||||
@@ -2916,6 +2916,8 @@ do--login
|
||||
local password2=WIDGET.active.password2.value
|
||||
if #username==0 then
|
||||
LOG.print(text.noUsername)return
|
||||
elseif #email~=#email:match("^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")then
|
||||
LOG.print(text.wrongEmail)return
|
||||
elseif #password==0 or #password2==0 then
|
||||
LOG.print(text.noPassword)return
|
||||
elseif password~=password2 then
|
||||
|
||||
Reference in New Issue
Block a user