Commit 5513fc82 by Joneq

增加google验证条状

parent 36c2c7d3
Showing with 2 additions and 2 deletions
......@@ -7,7 +7,7 @@ local _ReM = {}
------跳转到google验证页面
function _ReM.checkgoogle()
function _ReM.checkgoogle(red)
source_url = ngx.encode_base64(ngx.var.scheme .. '://' ..
ngx.var.host .. ':' .. ngx.var.server_port .. ngx.var.request_uri)
dest = 'http://passport.ichunt.com/static/login.html' .. '?continue=' .. source_url
......
......@@ -134,7 +134,7 @@ if tonumber(ngx.var.server_name_id) == 1 and checkuri ~= nil and red:sismember
--如果超过次数就跳转至google验证页面,并且带上网址
if tonumber(red:get(checkuriip)) > checkuricount then
redirect.checkgoogle()
redirect.checkgoogle(red)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment