• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Username required in Community Auth


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?


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.
There are those who tell lies with meaning behind them and those meaning less lies!

Set the form username input field as required. and also in the form validation
What did you Try? What did you Get? What did you Expect?

Joined the CodeIgniter Community in 2009.          ( Skype: insitfx )

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.

Thank you very much, guys.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.