feat: aliyun sms
This commit is contained in:
@@ -11,10 +11,12 @@ function _M.access(conf, ctx)
|
||||
core.log.info("REQUEST_DEBUG: uri = "..request_uri)
|
||||
|
||||
local white_list = {
|
||||
["/api/v3/login"] = true,
|
||||
["/admin/v3/login"] = true,
|
||||
["/admin/v3/refresh"] = true,
|
||||
["/api/v3/version"] = true,
|
||||
["/api/v3/sms/send"] = true,
|
||||
["/api/v3/login"] = true,
|
||||
["/api/v3/version"] = true,
|
||||
|
||||
["/admin/v3/login"] = true,
|
||||
["/admin/v3/refresh"] = true,
|
||||
}
|
||||
|
||||
local user_key = core.request.header(ctx, "authorization")
|
||||
|
||||
Reference in New Issue
Block a user