Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Auth.php #1566

Open
wants to merge 1 commit into
base: 4
Choose a base branch
from
Open

Update Auth.php #1566

wants to merge 1 commit into from

Conversation

dgvirtual
Copy link
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
Owner

We should still trim these in the app code right?

@dgvirtual
Copy link
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
Owner

Yep agreed

@setioaji
Copy link

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