diff --git a/parts/net.lua b/parts/net.lua index 0698036d..7db82236 100644 --- a/parts/net.lua +++ b/parts/net.lua @@ -174,7 +174,7 @@ function NET.codeLogin(email,code) USER.aToken=res.data.accessToken saveUser() SCN.pop()SCN.push('net_menu') - SCN.go('reset_password') + SCN.go('reset_password',nil,code) end end diff --git a/parts/scenes/reset_password.lua b/parts/scenes/reset_password.lua index 4699e0df..17a9c1d7 100644 --- a/parts/scenes/reset_password.lua +++ b/parts/scenes/reset_password.lua @@ -15,6 +15,11 @@ local function _setPW() end end +function scene.enter() + if SCN.args[1] then + scene.widgetList.code:setText(SCN.args[1]) + end +end function scene.keyDown(key,rep) if key=='escape' and not rep then SCN.back()