mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Change emailVerified to true for admin account create (#1140)
The NewSignup method was already being called with requireApproval=false, but it had emailVerified=false as well, which meant that it was required to use the `admin account confirm` command to verify the email before the newly-created user could log in. I think that was probably an oversight; effectively it did require approval anyway. Changing emailVerified to true allows you to just create the account and log in immediately, reducing the opportunity for manual error to sneak in. Also updated the docs to remove the mention of needing to confirm new accounts. However, I've left the confirmation command alone because I think once we have web signups, it will be needed in that context.
This commit is contained in:
@@ -163,7 +163,7 @@ time=2022-04-19T09:48:36Z level=info msg=listening on 0.0.0.0:8080
|
||||
|
||||
### Create your first User
|
||||
|
||||
Now that GoToSocial is running, you can execute commands inside the running container to create, confirm, and promote your admin user.
|
||||
Now that GoToSocial is running, you can execute commands inside the running container to create and promote your admin user.
|
||||
|
||||
First create a user (replace the username, email, and password with appropriate values):
|
||||
|
||||
@@ -171,12 +171,6 @@ First create a user (replace the username, email, and password with appropriate
|
||||
docker exec -it gotosocial /gotosocial/gotosocial admin account create --username some_username --email someone@example.org --password 'some_very_good_password'
|
||||
```
|
||||
|
||||
Now confirm the user, replacing username with the value you used in the command above.
|
||||
|
||||
```bash
|
||||
docker exec -it gotosocial /gotosocial/gotosocial admin account confirm --username some_username
|
||||
```
|
||||
|
||||
Now promote the user you just created to admin privileges:
|
||||
|
||||
```bash
|
||||
|
Reference in New Issue
Block a user