Skip to content

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

Merged
brandonkelly merged 5 commits into4.15from
feature/cli-activation-email
Mar 3, 2025
Merged

Output activation email and prompt to send email for users/create#16794
brandonkelly merged 5 commits into4.15from
feature/cli-activation-email

Conversation

@timkelty
Copy link
Copy Markdown
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
@brandonkelly brandonkelly merged commit 8b4d836 into 4.15 Mar 3, 2025
@brandonkelly brandonkelly deleted the feature/cli-activation-email branch March 3, 2025 23:43
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