mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Merge pull request #163 from SilverViper/patch-1
[fix] Invalid even more cookies
This commit is contained in:
commit
1142c76a59
1 changed files with 4 additions and 4 deletions
|
@ -177,7 +177,7 @@ function set_auth_cookie(user, domain)
|
||||||
"; Expires="..os.date("%a, %d %b %Y %X UTC", expire)..
|
"; Expires="..os.date("%a, %d %b %Y %X UTC", expire)..
|
||||||
"; Secure"..
|
"; Secure"..
|
||||||
"; HttpOnly"..
|
"; HttpOnly"..
|
||||||
"; SameSite=Lax ;;"
|
"; SameSite=Lax"
|
||||||
|
|
||||||
ngx.header["Set-Cookie"] = {
|
ngx.header["Set-Cookie"] = {
|
||||||
"SSOwAuthUser="..user..cookie_str,
|
"SSOwAuthUser="..user..cookie_str,
|
||||||
|
@ -197,7 +197,7 @@ function delete_cookie()
|
||||||
"; Expires="..expired_time..
|
"; Expires="..expired_time..
|
||||||
"; Secure"..
|
"; Secure"..
|
||||||
"; HttpOnly"..
|
"; HttpOnly"..
|
||||||
"; SameSite=Lax ;;"
|
"; SameSite=Lax"
|
||||||
ngx.header["Set-Cookie"] = {
|
ngx.header["Set-Cookie"] = {
|
||||||
"SSOwAuthUser="..cookie_str,
|
"SSOwAuthUser="..cookie_str,
|
||||||
"SSOwAuthHash="..cookie_str,
|
"SSOwAuthHash="..cookie_str,
|
||||||
|
@ -214,8 +214,8 @@ function delete_redirect_cookie()
|
||||||
"; Expires="..expired_time..
|
"; Expires="..expired_time..
|
||||||
"; Secure"..
|
"; Secure"..
|
||||||
"; HttpOnly"..
|
"; HttpOnly"..
|
||||||
"; SameSite=Lax ;;"
|
"; SameSite=Lax"
|
||||||
ngx.header["Set-Cookie"] = "SSOwAuthRedirect=;" ..cookie_str
|
ngx.header["Set-Cookie"] = "SSOwAuthRedirect=" ..cookie_str
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue