great - that sounds fine for an internal name... On Thu, Jul 9, 2009 at 12:56 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > The field is called password. passfield is an internal local variable > and should not be exposed to the public. It appered there because of > cut and paste mistake. > > > On Jul 9, 12:43 pm, Yarko Tymciurak <yark...@gmail.com> wrote: > > On Thu, Jul 9, 2009 at 10:19 AM, Kuba Kucharski < > kuba.kuchar...@gmail.com>wrote: > > > > > > > > > > > > > I did some reading with testing > > > > > 47th page should be: > > > > > auth_table = db.define_table( > > > auth.settings.table_user_name, > > > Field('first_name', length=128, default=''), > > > Field('last_name', length=128, default=''), > > > Field('email', length=128, default=''), > > > Field('password', 'password',readable=False, label='Password'), > > > Field('registration_key', length=128, default= '',writable=False, > > > readable=False)) > > > > > auth.settings.table_user = auth_table > > > auth_table.first_name.requires = > > > IS_NOT_EMPTY(error_message=auth.messages.is_empty) > > > auth_table.last_name.requires = > > > IS_NOT_EMPTY(error_message=auth.messages.is_empty) > > > auth_table.password.requires = [IS_STRONG(), CRYPT()] > > > auth_table.email.requires = > > > [IS_EMAIL(error_message=auth.messages.invalid_email),IS_NOT_IN_DB(db, > > > '%s.email'% auth.settings.table_user._tablename)] > > > > > errors: > > > > > auth_table.passfield instead of auth_table.password > > > > can somebody remind me why this is called passfield instead of password? > > > > It seems so "off the beaten path" that unless it's motivation is made > very > > clear (in the book, and elsewhere) > > I'm afraid this mistake will (naturally) be repeated many times by many > > people. > > > > If there's not a really strong motivation, I think it perhaps is not a > good > > idea. > > > > > > > > > also more important: > > > auth_table = auth.settings.table_user > > > instead of auth.settings.table_user = auth_table > > > > > -- > > > Kuba > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---