I read this (look the paragraph called "AVOID USING USERNAME FIELD FOR
STORING EMAIL!"):

http://bluehorn.co.nz/2009/04/29/implementing-email-login-with-sfguardplugin/

Is that true?

Javi

On Apr 2, 5:27 am, Tom Haskins-Vaughan <[email protected]>
wrote:
> Why don't you just store the email in the username field?
>
> On Thu, Apr 1, 2010 at 9:07 AM, Javier Garcia <[email protected]> wrote:
> > Hi,
>
> > sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
>
> > sfGuardUser:
> >  actAs: [Timestampable]
> >  columns:
> >    id:
> >      type: integer(4)
> >      primary: true
> >      autoincrement: true
> >    username:
> >      type: string(128)
> >      notnull: true
> >      unique: true
>
> > As you can see 'username' has the feature "notnull:true". Now i want
> > to create a register form that is not using 'username' but the email
> > address of the user.
>
> > When a user wants to register, it is showed this:
>
> > Validation failed in class sfGuardUser
> > 1 field had validation error:
> > * 1 validator failed on username (notnull)
>
> > Any idea?
>
> > Javi
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > To unsubscribe, reply using "remove me" as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to