- user = loadstring(sdat)().user
- if user and luci.util.contains(accs, user) then
- return user, auth
+ if sdat then -- if given token is valid
+ user = loadstring(sdat)().user
+ if user and luci.util.contains(accs, user) then
+ return user, auth
+ end