Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Shield adding alternate fields
#3

(This post was last modified: 11-09-2022, 01:15 AM by superior.)

(11-08-2022, 09:06 AM)datamweb Wrote: please see https://github.com/codeigniter4/shield/b...validators

Thank you for the reply!
This confirms what i'm thinking and have read.
I want to exclude some fields from this list and keep it separated so it doesn't compromise the security but is able to use more fields.
So a different array with default columns (created my own with migration) and when needed add some fields to the check against 'NothingPersonalValidator' inside the 'personalFields'.

Basicly something like
PHP Code:
<?php

// Check against these columns in 'users' table
public array $personalFields = ['firstname''lastname''company'];

// All custom columns in 'users' table
public array $userColumns = ['firstname''lastname''company''address''zipcode''city''country''phone''newsletter']; 
Reply


Messages In This Thread
RE: Shield adding alternate fields - by datamweb - 11-08-2022, 09:06 AM
RE: Shield adding alternate fields - by superior - 11-09-2022, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB