Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into data-entry-reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
praseodym committed Mar 5, 2025
2 parents 404e23e + 624daf3 commit d0d1b26
Show file tree
Hide file tree
Showing 164 changed files with 5,699 additions and 2,319 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "abacus"
version = "0.1.0"
edition = "2021"
edition = "2024"
license = "EUPL-1.2"
rust-version = "1.75"
rust-version = "1.85"
default-run = "abacus"

[features]
Expand Down Expand Up @@ -43,7 +43,7 @@ argon2 = "0.5.3"
password-hash = { version = "0.5.0", features = ["getrandom"] }
rand = "0.9.0"
cookie = { version = "0.18.1", features = ["percent-encode"] }
zip = { version = "2.2.2", default-features = false, features = ["deflate", "chrono"] }
zip = { version = "2.2.3", default-features = false, features = ["deflate", "chrono"] }

[dev-dependencies]
test-log = "0.2.17"
Expand Down
9 changes: 7 additions & 2 deletions backend/fixtures/users.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
INSERT INTO users (id, username, fullname, role, password_hash)
-- password is 'password'
VALUES (1, 'user', 'Sanne Molenaar', 'administrator', '$argon2id$v=19$m=19456,t=2,p=1$frZGxFIhMHEsBJS4/VZr1A$zVIGEmiTFGy9jEy1Bphdq1ZO0lUngom8qu9PLsN6mZY');
-- Passwords:
-- admin: 'AdminPassword01'
-- typist: 'TypistPassword01'
-- coordinator: 'CoordinatorPassword01'
VALUES (1, 'admin', 'Sanne Molenaar', 'administrator', '$argon2id$v=19$m=19456,t=2,p=1$QUKK7UVINt+ORMFA+7egeQ$iWQBzhaWH5NupuTSJA5jzxC20y/SH8j53rdz5YTema4'),
(2, 'typist', 'Sam Kuijpers', 'typist', '$argon2id$v=19$m=19456,t=2,p=1$Er+VXYLcGjIJL8i1aCUofA$fjT6Cp1tNr0HhI+LUE+hZG8GnvZI+m9qNXr6mcyJzQM'),
(3, 'coordinator', 'Mohammed van der Velden', 'coordinator', '$argon2id$v=19$m=19456,t=2,p=1$M3/ivnARZ5AHMGIAIc+hpA$AUNjzm2yEWIkMlaam8BKFxr4gv3TbU+nyiAcSZrmfoM');
2 changes: 1 addition & 1 deletion backend/migrations/5_users.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ CREATE TABLE users
last_activity_at DATETIME ,
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE(username)
UNIQUE(username COLLATE NOCASE)
);
2 changes: 1 addition & 1 deletion backend/migrations/6_sessions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ CREATE TABLE sessions
expires_at DATETIME NOT NULL,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,

FOREIGN KEY (user_id) REFERENCES users (id),
FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE,
UNIQUE(session_key)
);
Loading

0 comments on commit d0d1b26

Please sign in to comment.