使用新的登录和鉴权API

This commit is contained in:
ParticleG
2023-01-12 18:07:24 +08:00
parent d83779662a
commit 8aac152ee6
3 changed files with 26 additions and 132 deletions

View File

@@ -21,11 +21,10 @@ scene.widgetList={
WIDGET.newButton{name='logout',x=880, y=40,w=180, h=60,color='dR',
code=function()
if tryBack() then
print('logout')
USER.__data.uid=false
USER.__data.email=false
USER.__data.password=false
USER.__data.rToken=false
USER.__data.aToken=false
USER.__data.oToken=false
love.filesystem.remove('conf/user')
SCN.back()
end