Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Change emailVerified to true for admin account create #1140

Merged

Conversation

technomancy
Copy link
Contributor

The NewSignup method was already being called with requireApproval=false, but it had emailVerified=false as well, which meant that it was necessary 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, streamlining the setup and 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.

It's possible I've overlooked something about the admin account confirm and it does in fact still make sense even for accounts created thru the CLI; if so please feel free to close this!

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.
@tsmethurst
Copy link
Contributor

Looks good, thank you :)

@tsmethurst tsmethurst merged commit 9e18c7f into superseriousbusiness:main Nov 25, 2022
@technomancy technomancy deleted the no-confirm-required branch November 25, 2022 16:13
@technomancy
Copy link
Contributor Author

I just realized I may have been a little hasty here; this is going to change the docs at https://docs.gotosocial.org/en/latest/ which means that people installing 0.5.2 will run into a situation where they will need to confirm but the docs don't explain it.

So unless we're like ... right on the cusp of releasing 0.6.0, I should probably add a note about the fact that confirm is necessary on some versions and not others.

Sorry I missed this earlier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants