mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-23 17:19:47 +02:00
Update common.lua
This commit is contained in:
@ -52,6 +52,7 @@ function is_auth()
|
|||||||
local f = io.open(TUNNEL_KEYCHAIN, "w")
|
local f = io.open(TUNNEL_KEYCHAIN, "w")
|
||||||
if f then
|
if f then
|
||||||
f:write(sessionid)
|
f:write(sessionid)
|
||||||
|
f:close()
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -60,4 +61,4 @@ function auth_or_die(msg)
|
|||||||
if(is_auth() == false) then
|
if(is_auth() == false) then
|
||||||
die(msg)
|
die(msg)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user