Closed ickerio closed 4 months ago
add auth sessions using cookies and UUID v4. expiry is unix epoch time
CREATE TABLE sessions(
id CHAR(36) PRIMARY KEY,
username CHAR(64) NOT NULL REFERENCES user(username),
expiry INTEGER NOT NULL,
)
https://github.com/ickerio/cits3403/commit/e89ae11f73b1063b935f3fe6e3eb640a0a4a36c9
Added models to reflect the above with minor alterations in branch 'add-models'. Didn't include auth.
Will be using Flask-Login which I assume uses memory for handling sessions rather than SQL as instructed on the forums https://flask-login.readthedocs.io/en/latest/