Add validation constraints to user.settings
3 unresolved threads
3 unresolved threads
Closes #3436164
Merge request reports
Activity
41 41 register: 42 42 type: string 43 43 label: 'Who can register accounts?' 44 constraints: 45 Choice: 46 choices: 47 - 'visitors' 48 - 'admin_only' 49 - 'visitors_admin_approval' 44 50 cancel_method: 45 51 type: string 46 52 label: 'When cancelling a user account' 53 constraints: 54 NotBlank: 55 allowNull: true 45 Choice: 46 choices: 47 - 'visitors' 48 - 'admin_only' 49 - 'visitors_admin_approval' 44 50 cancel_method: 45 51 type: string 46 52 label: 'When cancelling a user account' 53 constraints: 54 NotBlank: 55 allowNull: true 47 56 password_reset_timeout: 48 57 type: integer 49 58 label: 'Password reset timeout' 59 constraints: 60 NotNull: [] - Comment on lines +59 to +60
This should not be necessary; instead the entireuser.settings
should be marked asFullyValidatable
. See https://www.drupal.org/node/3404425. changed this line in version 4 of the diff
Please register or sign in to reply