Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jjj333-p committed Mar 23, 2024
1 parent 74a1e50 commit 70e616f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ Discussion Room: [#admin-interface-support:pain.agency](https://matrix.to/#/%23a
- `f` or `false` to keep all sessions logged in.
- `? password` - optionally set a password to reset to. If no password is supplied, it will default to a randomized 35 byte base64 string which will be returned. Because of Dendrite the password has to be at least 8 characters. Due to technical difficulties you can not have any spaces in a password set through this interface.

- `newaccount <mxid/localpart> ?<password>`

Create a new normal user account.
- `mxid/localpart` - the username to create for the user. This can be either just the localpart, or the full mxid.
- `? password` - password to set for the new account. If none is provided a base64 string of 35 bytes will be generated and returned.

- `deactivate <mxid/localpart>`

deactivates the given user
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ commandHandlers.set("newaccount", async ({ contentByWords, event }) => {

client.sendHtmlNotice(
adminRoom,
`(Attempted to) reset password of user <code>${user}</code> to <code>${setpasswd}</code>`,
`(Attempted to) Created new account <code>${user}</code> with password <code>${setpasswd}</code>`,
);
});

Expand Down

0 comments on commit 70e616f

Please sign in to comment.