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

Output activation email and prompt to send email for users/create #16794

Open
wants to merge 2 commits into
base: 4.15
Choose a base branch
from

Conversation

timkelty
Copy link
Contributor

@timkelty timkelty commented Feb 27, 2025

Description

  • Adds --send-activation-email option (defaults to false)
  • When interactive, prompt to send activation email
  • Outputs activation URL to STDOUT if user is not active

Example output:

❯ craft users/create
Email: [email protected]
Username: timkelty
Make this user an admin? (yes|no) [no]:
Set a password for this user? (yes|no) [no]:
Activate the account? (yes|no) [no]:
Saving the user ... done
Send an activation email now? (yes|no) [no]:y
Sending activation email ... done
Activation URL for “timkelty”: https://site.com/setpassword?code=xxx

@timkelty timkelty changed the base branch from 5.x to 4.x February 27, 2025 22:27
@timkelty timkelty changed the base branch from 4.x to 4.15 February 27, 2025 22:27
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.

1 participant