Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 41 additions & 2 deletions Documentation/404.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,47 @@
Content was removed
===================

TYPO3 14.0
==========
.. contents::

.. _not-found-15:

TYPO3 v15
=========

.. _columns-password-properties-passwordGenerator_passwordRules:
.. _columns-password-properties-passwordGenerator_passwordRules-migration:
.. _columns-password-properties-passwordGenerator_passwordRules_length:
.. _confval-password-passwordRules-length:
.. _columns-password-properties-passwordGenerator_passwordRules_random:
.. _confval-password-passwordRules-random:
.. _columns-password-properties-passwordGenerator_passwordRules_digitcharacters:
.. _confval-passwordRules.digitCharacters:
.. _columns-password-properties-passwordGenerator_passwordRules_lowercasecharacters:
.. _confval-password-passwordRules-lowerCaseCharacters:
.. _columns-password-properties-passwordGenerator_passwordRules_uppercasecharacters:
.. _confval-password-passwordRules-upperCaseCharacters:
.. _columns-password-properties-passwordGenerator_passwordRules_specialcharacters:
.. _confval-password-passwordRules-specialCharacters:

passwordGenerator passwordRules replaced by passwordGenerator
=============================================================

.. deprecated:: 14.2
See `Deprecation: #69190 - Deprecate random password generator for frontend and backend users <https://docs.typo3.org/permalink/changelog:deprecation-69190-1770668741>`_.

The passwordRules of the passwordGenerator have been replaced by the
`passwordPolicy <https://docs.typo3.org/permalink/t3tca:confval-password-passwordgenerator-passwordpolicy>`_.


The `passwordRules` option of the `passwordGenerator` field control has been
deprecated. Password generation is now configured through
`Password policies <https://docs.typo3.org/permalink/t3coreapi:password-policies>`_
registered in :php:`$GLOBALS['TYPO3_CONF_VARS']['SYS']['passwordPolicies']`.

.. _not-found-14:

TYPO3 v14
=========

.. _interface:
.. _interface-examples:
Expand Down
148 changes: 0 additions & 148 deletions Documentation/ColumnsConfig/Type/Password/PasswordGenerator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,151 +129,3 @@ Password policy

.. literalinclude:: _Snippets/_PasswordPolicy.php
:caption: EXT:my_extension/Configuration/TCA/Overrides/fe_users.php


.. _columns-password-properties-passwordGenerator_passwordRules:

Password rules
==============

.. deprecated:: 14.2
The `passwordRules` option of the `passwordGenerator` field control has been
deprecated. Password generation is now configured through
`Password policies <https://docs.typo3.org/permalink/t3coreapi:password-policies>`_
registered in :php:`$GLOBALS['TYPO3_CONF_VARS']['SYS']['passwordPolicies']`.

Define rules for the password.

.. _columns-password-properties-passwordGenerator_passwordRules-migration:

Migration from `passwordRules` to password policies
---------------------------------------------------

Replace the `passwordRules` option with a `Password policiy <https://docs.typo3.org/permalink/t3coreapi:password-policies>`_ reference.

.. code-block:: diff
:caption: EXT:my_extension/Configuration/TCA/Overrides/be_users.php

'fieldControl' => [
'passwordGenerator' => [
'renderType' => 'passwordGenerator',
'options' => [
- 'passwordRules' => [
- 'length' => 20,
- 'upperCaseCharacters' => true,
- 'lowerCaseCharacters' => true,
- 'digitCharacters' => true,
- 'specialCharacters' => false,
- ],
+ 'passwordPolicy' => 'myCustomPolicy',
],
],
],

.. _columns-password-properties-passwordGenerator_passwordRules_length:

passwordRules.length
--------------------

.. confval:: passwordRules.length
:name: password-passwordRules-length
:Path: :php:`$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['passwordGenerator']['options']['passwordRules']['length']`
:Type: int
:Default: :php:`16`
:Minimum: :php:`8`

.. deprecated:: 14.2

Defines the amount of characters for the generated password.

.. _columns-password-properties-passwordGenerator_passwordRules_random:

passwordRules.random
--------------------

.. confval:: passwordRules.random
:name: password-passwordRules-random
:Path: :php:`$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['passwordGenerator']['options']['passwordRules']['random']`
:Type: String
:Values: :php:`"hex"`, :php:`"base64"`

.. deprecated:: 14.2

Defines the encoding of random bytes. Overrules character definitions.

:php:`"hex"`
Generates a random password in hexadecimal format. Example:
`d0f4030d568ab483b8442735e9e3a7`.

:php:`"base64"`
Generates a random password in base64 format. Example:
`dtbpykd4vf1hda_Ag9kG983y-_N2zyLZzof`.

.. note::
Defining the `passwordRules.random`
password rule takes precedence over any character definition, which
should therefore be omitted as soon as
`passwordRules.random` is set to one
of the available encodings: :php:`hex` or :php:`base64`.

.. _columns-password-properties-passwordGenerator_passwordRules_digitcharacters:

passwordRules.digitCharacters
-----------------------------

.. confval:: passwordRules.digitCharacters
:name: password-passwordRules-digitCharacters
:Path: :php:`$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['passwordGenerator']['options']['passwordRules']['digitCharacters']`
:Type: boolean
:Default: :php:`true`

.. deprecated:: 14.2

If set to :php:`false`, the generated password contains no digit.

.. _columns-password-properties-passwordGenerator_passwordRules_lowercasecharacters:


passwordRules.lowerCaseCharacters
---------------------------------

.. confval:: passwordRules.lowerCaseCharacters
:name: password-passwordRules-lowerCaseCharacters
:Path: :php:`$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['passwordGenerator']['options']['passwordRules']['lowerCaseCharacters']`
:Type: boolean
:Default: :php:`true`

.. deprecated:: 14.2

If set to :php:`false`, the generated password contains no lower case characters.

.. _columns-password-properties-passwordGenerator_passwordRules_uppercasecharacters:

passwordRules.upperCaseCharacters
---------------------------------

.. confval:: passwordRules.upperCaseCharacters
:name: password-passwordRules-upperCaseCharacters
:Path: :php:`$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['passwordGenerator']['options']['passwordRules']['upperCaseCharacters']`
:Type: boolean
:Default: :php:`true`

.. deprecated:: 14.2

If set to :php:`false`, the generated password contains no upper case characters.

.. _columns-password-properties-passwordGenerator_passwordRules_specialcharacters:

passwordRules.specialCharacters
---------------------------------

.. confval:: passwordRules.specialCharacters
:name: password-passwordRules-specialCharacters
:Path: :php:`$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['passwordGenerator']['options']['passwordRules']['specialCharacters']`
:Type: boolean
:Default: :php:`false`

.. deprecated:: 14.2

If set to :php:`true`, the generated password also contains special
characters (`!"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~`).