Add User Management Commands #2

Closed
opened 3 months ago by erin · 2 comments
erin commented 3 months ago
Owner

Have user management commands & user management properly working to be able to ban users at the least.

This would also require properly handling user roles, and figuring out the best way to be able to setup admins/moderators.

Probably only allow one admin? And just have it so there's an api to set them up first, then don't allow any more. And then the admin can assign moderators.

Have user management commands & user management properly working to be able to ban users at the least. This would also require properly handling user roles, and figuring out the best way to be able to setup admins/moderators. Probably only allow one admin? And just have it so there's an api to set them up first, then don't allow any more. And then the admin can assign moderators.
erin added this to the Get to v1 milestone 3 months ago
erin added the
enhancement
backend
labels 3 months ago
erin added this to the Backend Server project 3 months ago
Poster
Owner

Basic functionality for various user commands is now implemented. Still have to implement admin user, frontend for commands, #12, and keeping a list of banned users via Uuid.

Basic functionality for various user commands is now implemented. Still have to implement admin user, frontend for commands, [#12](https://git.lavender.software/erin/lila-chat/issues/12), and keeping a list of banned users via Uuid.
Poster
Owner

Admin user is now implemented. If you register a user with the name "admin", they will become an admin user. As usernames are unique this will work. Just register them as the first user before making it public, and then you can promote some mods. Right now admins and mods can perform the same actions, with the exception of mods being unable to demote admins.

The current commands are:

Ban: which removes a user from the database. I realized that I don't need uuid's as the username cannot change after they've been removed.

Kick: which invalidates the users current token, forcing them to re-login. I want to implement a timeout system, not allowing them to logout for a certain amount of time, but right now I don't know how I'd do that.

Demote: Demotes a moderator into a normal user.

Premote: Premotes a normal user into a moderator.

As of right now commands are only available via a js script, as the frontend for commands is not finished yet.

@luna you should probably also add a way for a checking the message list, after you've implemented commands :3

Admin user is now implemented. If you register a user with the name "admin", they will become an admin user. As usernames are unique this will work. Just register them as the first user before making it public, and then you can promote some mods. Right now admins and mods can perform the same actions, with the exception of mods being unable to demote admins. The current commands are: `Ban`: which removes a user from the database. I realized that I don't need uuid's as the username cannot change after they've been removed. `Kick`: which invalidates the users current token, forcing them to re-login. I want to implement a timeout system, not allowing them to logout for a certain amount of time, but right now I don't know how I'd do that. `Demote`: Demotes a moderator into a normal user. `Premote`: Premotes a normal user into a moderator. As of right now commands are only available via a js script, as the frontend for commands is not finished yet. @luna you should probably also add a way for a checking the message list, after you've implemented commands :3
erin closed this issue 3 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.