mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
📃 feat: add list-balances
, remove-user
, and improve User scripts (#1418)
* Refactoring opening of DB to config/helpers.js * Adding two user scripts: - 'delete-user' to remove a user definitely - 'list-balances' to show the balances of all the users
This commit is contained in:
parent
8735db0980
commit
1a95bef677
10 changed files with 137 additions and 82 deletions
|
@ -581,6 +581,7 @@ see: **[Token Usage](../../features/token_usage.md)**
|
|||
|
||||
- To manually add balances, run the following command:`npm run add-balance`
|
||||
- You can also specify the email and token credit amount to add, e.g.:`npm run add-balance example@example.com 1000`
|
||||
- To list the balance of every user: `npm run list-balances`
|
||||
|
||||
> **Note:** 1000 credits = $0.001 (1 mill USD)
|
||||
|
||||
|
@ -602,6 +603,7 @@ see: **[User/Auth System](../configuration/user_auth_system.md)**
|
|||
- `ALLOW_SOCIAL_REGISTRATION`: Enable or disable registration of new user using various social network. Set to `true` or `false` to enable or disable.
|
||||
|
||||
> **Quick Tip:** Even with registration disabled, add users directly to the database using `npm run create-user`.
|
||||
> **Quick Tip:** With registration disabled, you can delete a user with `npm run delete-user email@domain.com`.
|
||||
|
||||
```bash
|
||||
ALLOW_EMAIL_LOGIN=true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue