CodeIgniter-Ion-Auth icon indicating copy to clipboard operation
CodeIgniter-Ion-Auth copied to clipboard

Update Auth.php

Open dgvirtual opened this issue 2 years ago • 4 comments

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

dgvirtual avatar Jun 08 '22 20:06 dgvirtual

We should still trim these in the app code right?

benedmunds avatar Jun 08 '22 20:06 benedmunds

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?

dgvirtual avatar Jun 08 '22 20:06 dgvirtual

Yep agreed

benedmunds avatar Jun 09 '22 14:06 benedmunds

need trim

setioaji avatar Oct 13 '22 05:10 setioaji