Skip to content

Update Auth.php#1566

Open
dgvirtual wants to merge 1 commit intobenedmunds:4from
dgvirtual:patch-7
Open

Update Auth.php#1566
dgvirtual wants to merge 1 commit intobenedmunds:4from
dgvirtual:patch-7

Conversation

@dgvirtual
Copy link
Copy Markdown
Contributor

Remove trim function from the validation rules as "CI4 validation never changes your data".

Remove trim function from the validation rules as "[CI4 validation never changes your data](https://codeigniter.com/user_guide/installation/upgrade_validations.html)".
@benedmunds
Copy link
Copy Markdown
Owner

We should still trim these in the app code right?

@dgvirtual
Copy link
Copy Markdown
Contributor Author

I guess so, but trimming should be done before validation. If we validate untrimmed identity, for example, and the user happens to leave a space at the end, the identity will validate despite such identity already existing, right?

@benedmunds
Copy link
Copy Markdown
Owner

Yep agreed

@setioaji
Copy link
Copy Markdown

need trim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants