mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Prevent adding the same cookie again and again.
This commit is contained in:
parent
06be1fa65a
commit
b9b6d09769
1 changed files with 3 additions and 1 deletions
|
@ -49,8 +49,10 @@ end
|
||||||
|
|
||||||
-- Set a cookie
|
-- Set a cookie
|
||||||
function cook (cookie_str)
|
function cook (cookie_str)
|
||||||
|
if not is_in_table(cookies, cookie_str) then
|
||||||
table.insert(cookies, cookie_str)
|
table.insert(cookies, cookie_str)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Store a message in the flash shared table in order to display it at the
|
-- Store a message in the flash shared table in order to display it at the
|
||||||
|
|
Loading…
Reference in a new issue