Skip to content

Authentication

Salanto edited this page Jun 18, 2022 · 7 revisions

These commands are related to server authentication and setting up multiple moderators.

/login

Usage: /login
Permissions: NONE
Enters the login prompt to login as a moderator. The next OOC message the caller sends will be interpreted as the login attempt. In simple auth, the modpass must be sent. In advanced auth, the username and password must be sent. After any login attempt, successful or failed, the caller will exit the login prompt, and will send messages as normal.

/changeauth

Usage: /changeauth
Permissions: SUPER
Starts the process to change authentication from simple to advanced.

/rootpass

Usage: /rootpass <password>
Permissions: SUPER
Sets the root user's password and sets the server to advanced authentication. This can only be run while the server is in the process of changing authentication.

/adduser

Usage: /adduser <username> <password>
Permissions: MODIFY_USERS
Adds a new user to the server with the specified username and password.

/removeuser

Usage: /removeuser <username>
Permissions: MODIFY_USERS
Removes a user from the server.

/listusers

Usage: /listusers
Permissions: MODIFY_USERS
Lists all users in the server's database.

/listperms

Usage: /listperms [<role>]
Permissions: NONE
Lists all permissions of a given role. If a role is not provided, it lists the permissions of the caller.

/logout

Usage: /logout
Permissions: NONE
Logs a user out as a moderator.

/changepass

Usage: /changepass [username] <password>
Permissions: NONE
Changes the caller's password, if logged in as a moderator. If the caller has SUPER permissions, the username of the password to change can be specified.