Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(user): disabled / enabled #153

Merged
merged 29 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
37d1278
lib/server/db/schema/user.ts: add active field
Jan 17, 2025
fe3ec42
lib/server/db/user.ts: implement isActiveuser
Jan 17, 2025
3a4499c
isActiveuser: improve error handling
Jan 17, 2025
cd98b6b
lib/server//db/user.ts: implement updateUserActive
Jan 17, 2025
d01062d
lib/server/db/user.ts: await the update
Jan 27, 2025
2093c9d
routes/admin/activate: implement the route for activating users
Jan 27, 2025
bafc5df
remove debug printing
Jan 27, 2025
7443ffe
routes/login: don't let deactivated users log in
Jan 27, 2025
ba0203d
routes/admin/activate: username is not in scope, fully qualify
Jan 27, 2025
727344a
routes/admin/activate: remove an unnecessary import
Jan 27, 2025
8c52a66
admin/layout: activate page has a title now
Jan 28, 2025
9c83a9c
admin/sidebar: add activate / deactivate users
Jan 28, 2025
c151df8
routes/admin/activate: remove unnecessary type=submit on the buttons
Jan 29, 2025
b3906c2
hooks.server.ts: log out a deactivated user
Jan 29, 2025
e7bbc71
rename [de]active to disable / enable
Jan 29, 2025
563eca2
drizzle: reset migrations
Jan 29, 2025
ad6fcbc
reset migrations take 2
Jan 29, 2025
2e00cf8
Merge branch 'main' into as/feat/active
Jan 29, 2025
6e3b068
hooks.server.ts: don't bother the database
Jan 29, 2025
14790b2
drizzle: generate migrations again
Jan 29, 2025
754c087
fomratting
Jan 30, 2025
a4c7b1c
lib/server/db/user.ts: implement function to update all user statuses
Feb 4, 2025
dfab2ee
routes/admin/disable: refactor
Feb 4, 2025
acb4c8b
silence typescript errors
Feb 5, 2025
d834802
formatting
Feb 5, 2025
708dd78
routes/admin/disable: add enable all form
Feb 6, 2025
8a20798
Merge remote-tracking branch 'origin/main' into as/feat/active
Feb 7, 2025
7c5943d
formatting
Feb 7, 2025
17bf160
fix(disable): UI fixes and optimized query for disabling/enabling
aleksasiriski Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drizzle: generate migrations again
  • Loading branch information
Aleksandar Sredojević committed Jan 29, 2025
commit 14790b22da9caa633d12d91ac54f4fbf0c3a2c4e
1 change: 1 addition & 0 deletions drizzle/0008_lush_selene.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "user" ADD COLUMN "disabled" boolean DEFAULT false NOT NULL;
Loading
Loading