Sign up/in/out and authentication.

This commit is contained in:
Greg Burri 2022-11-22 17:03:52 +01:00
parent 5e4e086247
commit aedfae1d17
5 changed files with 318 additions and 27 deletions

View file

@ -25,7 +25,7 @@ CREATE TABLE [UserLoginToken] (
[last_login_datetime] DATETIME,
[token] TEXT NOT NULL, -- 24 alphanumeric character token. Can be stored in a cookie to be able to authenticate without a password.
[ip] INTEGER,
[ip] TEXT, -- Can be ipv4 or ipv6
[user_agent] TEXT,
FOREIGN KEY([user_id]) REFERENCES [User]([id])