Sign up/in/out and authentication.
This commit is contained in:
parent
5e4e086247
commit
aedfae1d17
5 changed files with 318 additions and 27 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue