hotfix
This commit is contained in:
parent
e5d1904b1f
commit
3b6a631dc4
|
@ -35,7 +35,7 @@ local function login_post(req)
|
|||
local hash = sha3(todigest)
|
||||
if hash == passhash then
|
||||
local mysession = session.start(id)
|
||||
local domain_no_port = config.domain:match("(.*):.*")
|
||||
local domain_no_port = config.domain:match("(.*):.*") or config.domain
|
||||
http_response_header(req,"set-cookie",string.format(
|
||||
[[session=%s; SameSite=Lax; Path=/; Domain=%s; HttpOnly; Secure]],mysession,domain_no_port
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue