CodeIgniter-Ion-Auth
CodeIgniter-Ion-Auth copied to clipboard
Update Auth.php
Remove trim function from the validation rules as "CI4 validation never changes your data".
We should still trim these in the app code right?
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?
Yep agreed
need trim