减少密码哈希迭代次数防止把手机卡烂

原来的登录和注册界面改为密码登录和邮箱登录
邮箱登录界面不再分状态,设置密码独立出一个界面
自动登录不再检测本地用过密码登录,第一次邮箱登录不设置密码但存了token也可以
整理代码
This commit is contained in:
MrZ_26
2022-10-23 04:36:19 +08:00
parent f9bbb8fce6
commit d12f8a27e7
23 changed files with 313 additions and 220 deletions

View File

@@ -4,9 +4,9 @@ function scene.sceneInit()
BG.set('cubes')
local fileData=FILE.load('parts/language/manual_'..(SETTING.locale:find'zh' and 'zh' or SETTING.locale:find'ja' and 'ja' or 'en')..'.txt','-string')
if fileData then
WIDGET.active.texts:setTexts(fileData:split('\n'))
scene.widgetList.texts:setTexts(fileData:split('\n'))
else
WIDGET.active.texts:setTexts{"[manual file not found]"}
scene.widgetList.texts:setTexts{"[manual file not found]"}
end
end
@@ -16,13 +16,13 @@ function scene.wheelMoved(_,y)
end
function scene.keyDown(key)
if key=='up' then
WIDGET.active.texts:scroll(-5)
scene.widgetList.texts:scroll(-5)
elseif key=='down' then
WIDGET.active.texts:scroll(5)
scene.widgetList.texts:scroll(5)
elseif key=='pageup' then
WIDGET.active.texts:scroll(-20)
scene.widgetList.texts:scroll(-20)
elseif key=='pagedown' then
WIDGET.active.texts:scroll(20)
scene.widgetList.texts:scroll(20)
elseif key=='escape' then
SCN.back()
end