<commit_before><?php
/**
 * Edit User form
 */

return [
    /**
     * Form Configuration
     */
    'form' => [
        'method' => 'post',
        'elements' => [

            'email' => ['text', [
                'label' => 'E-mail Address (Username)',
                'validators' => ['EmailAddress'],
                'required' => true,
                'autocomplete' => 'off',
            ]],

            'auth_password' => ['password', [
                'label' => 'Reset Password',
                'description' => 'Leave blank to persist current password.',
                'autocomplete' => 'off',
                'required' => false,
            ]],

            'roles' => ['multiCheckbox', [
                'label' => 'Roles',
                'multiOptions' => \Entity\Role::fetchSelect(),
            ]],

            'submit' => ['submit', [
                'type' => 'submit',
                'label' => 'Save Changes',
                'helper' => 'formButton',
                'class' => 'btn btn-lg btn-primary',
            ]],
        ],
    ],
];<commit_msg>Closes #36 -- Forces a valid e-mail for all user accounts (as login screen does too).<commit_after><?php
/**
 * Edit User form
 */

return [
    /**
     * Form Configuration
     */
    'form' => [
        'method' => 'post',
        'elements' => [

            'email' => ['email', [
                'label' => 'E-mail Address',
                'required' => true,
                'autocomplete' => 'off',
            ]],

            'auth_password' => ['password', [
                'label' => 'Reset Password',
                'description' => 'Leave blank to use the current password.',
                'autocomplete' => 'off',
                'required' => false,
            ]],

            'roles' => ['multiCheckbox', [
                'label' => 'Roles',
                'multiOptions' => \Entity\Role::fetchSelect(),
            ]],

            'submit' => ['submit', [
                'type' => 'submit',
                'label' => 'Save Changes',
                'helper' => 'formButton',
                'class' => 'btn btn-lg btn-primary',
            ]],
        ],
    ],
];
{'fraction_non_alphanumeric': 0.17722681359044995, 'fraction_numerical': 0.0009182736455463728, 'mean_word_length': 1.2627206645898235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5315223', 'n_tokens_mistral': 611, 'n_tokens_neox': 567, 'n_words': 128}