刚注册完跳转到设置密码界面的时候会自动填入注册用的验证码(因为服务端就这么设计的可以复用一次)
This commit is contained in:
@@ -174,7 +174,7 @@ function NET.codeLogin(email,code)
|
|||||||
USER.aToken=res.data.accessToken
|
USER.aToken=res.data.accessToken
|
||||||
saveUser()
|
saveUser()
|
||||||
SCN.pop()SCN.push('net_menu')
|
SCN.pop()SCN.push('net_menu')
|
||||||
SCN.go('reset_password')
|
SCN.go('reset_password',nil,code)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,11 @@ local function _setPW()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function scene.enter()
|
||||||
|
if SCN.args[1] then
|
||||||
|
scene.widgetList.code:setText(SCN.args[1])
|
||||||
|
end
|
||||||
|
end
|
||||||
function scene.keyDown(key,rep)
|
function scene.keyDown(key,rep)
|
||||||
if key=='escape' and not rep then
|
if key=='escape' and not rep then
|
||||||
SCN.back()
|
SCN.back()
|
||||||
|
|||||||
Reference in New Issue
Block a user