mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-19 18:08:21 +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")
|
||||
if f then
|
||||
f:write(sessionid)
|
||||
f:close()
|
||||
end
|
||||
return true
|
||||
end
|
||||
@ -60,4 +61,4 @@ function auth_or_die(msg)
|
||||
if(is_auth() == false) then
|
||||
die(msg)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user