mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Remember nonce to prevent replay attacks
This commit is contained in:
parent
c7f0a6f2e1
commit
d185ba84bf
6 changed files with 104 additions and 76 deletions
13
config/sql/nonces.sql
Normal file
13
config/sql/nonces.sql
Normal file
|
@ -0,0 +1,13 @@
|
|||
-- Table: public.nonces
|
||||
|
||||
-- DROP TABLE public.nonces;
|
||||
|
||||
CREATE TABLE public.nonces
|
||||
(
|
||||
nonce text
|
||||
)
|
||||
WITH (
|
||||
OIDS=FALSE
|
||||
);
|
||||
|
||||
GRANT ALL ON TABLE public.nonces TO kemal;
|
Loading…
Add table
Add a link
Reference in a new issue