Skip to content

Commit

Permalink
fix: middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
horan-geeker committed Mar 22, 2020
1 parent 7a47148 commit c5708e4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions middleware/authenticate.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
local auth_service = require("services.auth_service")
local response = require("lib.response")

local _M = {}

function _M:handle()
if not auth_service:check() then
return false, response:json(0x000004, '未登录')
end
return true
-- if not auth_service:check() then
-- return false, response:json(0x000004)
-- end
end

return _M

0 comments on commit c5708e4

Please sign in to comment.