1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-29 02:38:22 +01:00
antd-lua-plugin/example-app/os/system/auth.lua
2018-09-19 15:08:49 +02:00

4 lines
125 B
Lua

auth_or_die("User unauthorized. Please login")
local user = require("system.uman").userinfo(SESSION.iotos_user)
result(user)