user.security_account_settings.html.twig

Same filename in other branches
  1. 8.9.x core/modules/help_topics/help_topics/user.security_account_settings.html.twig
  2. 10 core/modules/user/help_topics/user.security_account_settings.html.twig
  3. 11.x core/modules/user/help_topics/user.security_account_settings.html.twig
---
label: 'Configuring how user accounts are created and deleted'
related:
  - core.security
  - user.overview
---
{% set account_settings_url = render_var(url('entity.user.admin_form')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Configure settings related to how user accounts are created and deleted.{% endtrans %}</p>
<h2>{% trans %}What are the settings related to user account creation and deletion?{% endtrans %}</h2>
<ul>
  <li>{% trans %}You can make it possible for new users to register themselves for accounts, with or without email verification or administrative approval. Or, you can make it so only administrators with <em>Administer users</em> permission can register new users.{% endtrans %}</li>
  <li>{% trans %}You can configure what happens to content that a user created, if their account is <em>canceled</em> (deleted).{% endtrans %}</li>
  <li>{% trans %}You can edit the email messages that are sent to users when their accounts are pending, approved, created, blocked, or canceled, or when they request a password reset.{% endtrans %}</li>
</ul>
<h2>{% trans %}What are variables in email message text?{% endtrans %}</h2>
<p>{% trans %}<em>Variables</em> are short text strings, enclosed in square brackets [], that you can insert into configured email message text. When an individual message is generated, data from your site is substituted for the variables. Some commonly-used variables are:{% endtrans %}</p>
<ul>
  <li>{% trans %}[site:name]: The name of your website.{% endtrans %}</li>
  <li>{% trans %}[site:url]: The URL of your website.{% endtrans %}</li>
  <li>{% trans %}[site:login-url]: The URL where users can log in to your site.{% endtrans %}</li>
  <li>{% trans %}[user:display-name]: The user's displayed name.{% endtrans %}</li>
  <li>{% trans %}[user:account-name]: The user's account name.{% endtrans %}</li>
  <li>{% trans %}[user:mail]: The user's email alias.{% endtrans %}</li>
  <li>{% trans %}[user:one-time-login-url]: An expiring URL that a user can use to log in once, if they need to reset their password.{% endtrans %}</li>
</ul>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>People</em> &gt; <a href="{{ account_settings_url}}"><em>Account settings</em></a>.{% endtrans %}</li>
  <li>{% trans %}Select the method you want to use for creating user accounts, and check or uncheck the box that requires email verification, to match the settings you want for your site.{% endtrans %}</li>
  <li>{% trans %}Select the desired option for what happens to content that a user created if their account is canceled.{% endtrans %}</li>
  <li>{% trans %}Optionally, edit the text of email messages related to user accounts.{% endtrans %}</li>
  <li>{% trans %}Verify that the other settings are correct.{% endtrans %}</li>
  <li>{% trans %}Click <em>Save configuration</em>. You should see a message indicating that the settings were saved.{% endtrans %}</li>
</ol>

File

core/modules/help_topics/help_topics/user.security_account_settings.html.twig

View source
  1. ---
  2. label: 'Configuring how user accounts are created and deleted'
  3. related:
  4. - core.security
  5. - user.overview
  6. ---
  7. {% set account_settings_url = render_var(url('entity.user.admin_form')) %}
  8. <h2>{% trans %}Goal{% endtrans %}</h2>
  9. <p>{% trans %}Configure settings related to how user accounts are created and deleted.{% endtrans %}</p>
  10. <h2>{% trans %}What are the settings related to user account creation and deletion?{% endtrans %}</h2>
  11. <ul>
  12. <li>{% trans %}You can make it possible for new users to register themselves for accounts, with or without email verification or administrative approval. Or, you can make it so only administrators with <em>Administer users</em> permission can register new users.{% endtrans %}</li>
  13. <li>{% trans %}You can configure what happens to content that a user created, if their account is <em>canceled</em> (deleted).{% endtrans %}</li>
  14. <li>{% trans %}You can edit the email messages that are sent to users when their accounts are pending, approved, created, blocked, or canceled, or when they request a password reset.{% endtrans %}</li>
  15. </ul>
  16. <h2>{% trans %}What are variables in email message text?{% endtrans %}</h2>
  17. <p>{% trans %}<em>Variables</em> are short text strings, enclosed in square brackets [], that you can insert into configured email message text. When an individual message is generated, data from your site is substituted for the variables. Some commonly-used variables are:{% endtrans %}</p>
  18. <ul>
  19. <li>{% trans %}[site:name]: The name of your website.{% endtrans %}</li>
  20. <li>{% trans %}[site:url]: The URL of your website.{% endtrans %}</li>
  21. <li>{% trans %}[site:login-url]: The URL where users can log in to your site.{% endtrans %}</li>
  22. <li>{% trans %}[user:display-name]: The user's displayed name.{% endtrans %}</li>
  23. <li>{% trans %}[user:account-name]: The user's account name.{% endtrans %}</li>
  24. <li>{% trans %}[user:mail]: The user's email alias.{% endtrans %}</li>
  25. <li>{% trans %}[user:one-time-login-url]: An expiring URL that a user can use to log in once, if they need to reset their password.{% endtrans %}</li>
  26. </ul>
  27. <h2>{% trans %}Steps{% endtrans %}</h2>
  28. <ol>
  29. <li>{% trans %}In the <em>Manage</em> administrative menu, navigate to <em>Configuration</em> &gt; <em>People</em> &gt; <a href="{{ account_settings_url}}"><em>Account settings</em></a>.{% endtrans %}</li>
  30. <li>{% trans %}Select the method you want to use for creating user accounts, and check or uncheck the box that requires email verification, to match the settings you want for your site.{% endtrans %}</li>
  31. <li>{% trans %}Select the desired option for what happens to content that a user created if their account is canceled.{% endtrans %}</li>
  32. <li>{% trans %}Optionally, edit the text of email messages related to user accounts.{% endtrans %}</li>
  33. <li>{% trans %}Verify that the other settings are correct.{% endtrans %}</li>
  34. <li>{% trans %}Click <em>Save configuration</em>. You should see a message indicating that the settings were saved.{% endtrans %}</li>
  35. </ol>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.