mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
Update common.lua
This commit is contained in:
parent
1f3f18b83e
commit
701983e0fb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user