Repository navigation
Commit e0bd3bc
feat: account locking (#7749)
* feat(labrinth): user lock db schema
* feat(labrinth): check user lock state
* feat(frontend): user locking
* fix(labrinth): use deleted user if staff account is deleted
* fix(labrinth): error text
* fix(labrinth): allow perform analytics
* fix(labrinth): require user auth write for creating oauth links
* fix(labrinth): prevent linking paypal account if user is locked
* chore(frontend): reword warning
* fix: only allow admins to lock users
* refactor(labrinth): user is_admin
* remove(frontend): locked banner
* fix(labrinth): also prevent reads for locked accounts
* refactor(labrinth): remove redundant auth checks
* style(labrinth): fmt
* refactor(labrinth): endpoint mount point
* Update packages/ui/src/layouts/shared/user-profile/components/lock-user-modal.vue
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
---------
Signed-off-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>
Co-authored-by: François-Xavier Talbot <108630700+fetchfern@users.noreply.github.com>1 parent 64fc2b9 commit e0bd3bc
27 files changed
Lines changed: 681 additions & 14 deletions
File tree
- apps/labrinth
- .sqlx
- migrations
- src
- auth
- oauth
- database/models
- models/v3
- routes
- internal
- admin
- v3
- packages
- api-client/src/modules/labrinth
- moderation
- ui/src
- components/user
- locales/en-US
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments