Protecting routes on hte FE and improving authentication
This commit is contained in:
		@ -0,0 +1 @@
 | 
			
		||||
DROP TABLE sessions;
 | 
			
		||||
@ -0,0 +1,7 @@
 | 
			
		||||
CREATE TABLE sessions (
 | 
			
		||||
	token CHAR(43) PRIMARY KEY,
 | 
			
		||||
	data BLOB NOT NULL,
 | 
			
		||||
	expiry TIMESTAMP(6) NOT NULL
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
CREATE INDEX sessions_expiry_idx ON sessions (expiry);
 | 
			
		||||
		Reference in New Issue
	
	Block a user