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

#1
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.
Reply

#2
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!
Reply

#3
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 )
Reply

#4
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.
Reply

#5
Thank you very much, guys.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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