Add User Management Commands #2

Closed
opened 2021-07-24 15:35:52 +00:00 by erin · 2 comments

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 2021-07-24 15:35:52 +00:00
erin added the
enhancement
backend
labels 2021-07-24 15:35:52 +00:00
erin added this to the Backend Server project 2021-07-24 15:35:52 +00:00
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 2021-07-25 22:49:08 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: erin/lila-chat#2
There is no content yet.