CodeIgniter Forums
Username required in Community Auth - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Username required in Community Auth (/showthread.php?tid=67941)



Username required in Community Auth - annx10 - 04-28-2017

Hi.

For my application I need have username like required.
Can I modify table "users" changing field username for not admitance nulls?
If I modify it, that affects something that I must consider?

Thanks.


RE: Username required in Community Auth - arisroyo - 04-28-2017

Yes, for best practice make sure in front-end the field will never accept blank
2nd in your controller you can also check if username parameter has value
then 3rd its also good that this field in table should not accept blank or null.

So in case it able to penetrate to front-end and controller it will never make save a record with username null.


RE: Username required in Community Auth - InsiteFX - 04-28-2017

Set the form username input field as required. and also in the form validation


RE: Username required in Community Auth - skunkbad - 04-28-2017

These are all good suggestions, and you should know that if your application requires a username, that doesn't in any way change the way Community Auth works.


RE: Username required in Community Auth - annx10 - 04-28-2017

Thank you very much, guys.