Skip to content

Commit

Permalink
feat: add user disabling (#640)
Browse files Browse the repository at this point in the history
* add is_active column to the database

* use is_active field to check if the user is active

* add backend logic

* handle user disabling on the frontend

* sqlx prepare

* prevent disabled users from starting the enrollment

* set active by default

* prevent starting desktop configuration for disabled users

* logout disabled users

* Apply suggestions from code review

Co-authored-by: Jacek Chmielewski <jchmielewski@teonite.com>

* remove distinct on

* logout, then change status

* update generated localization

* add warnings

* modify frontend handling of disabled users

* sqlx prepare

* add tests

* prevent from starting password reset on disabled user

* don't display password reset button if the user is disabled

* add ldap todo

* hide user status from himself

* prevent admin from disabling himself

* add more tests

* properly check if the admin is going to disable himself

* fix css

* add new line to migrations

* rephrase

Co-authored-by: Adam <aciarcinski@teonite.com>

* don't panic

* add more log messages

* make tests more reliable

* upddate protobufs

* format

* sqlx prepare

* fix test

---------

Co-authored-by: Jacek Chmielewski <jchmielewski@teonite.com>
Co-authored-by: Adam <aciarcinski@teonite.com>
  • Loading branch information
3 people authored Jun 13, 2024
1 parent c92960e commit 4dc9ff8
Show file tree
Hide file tree
Showing 50 changed files with 981 additions and 70 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.

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.

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.

Loading

0 comments on commit 4dc9ff8

Please sign in to comment.