Good idea. I will apply this patch. On Dec 3, 1:19 am, "hamdy.a.farag" <hamdy.a.fa...@inbox.com> wrote: > Thanks for this > > But I've a comment > > for my application , the authentication uses email address and > password > and I make a label besides the text field where users enters his email > address . The label just says "Enter your Email address" > so I simply want user to know I want him to enter an email address . > In some cases user just doesn't check the label and enters just a name > -may be his first name- because he is used to login with just a user > name and password > so I need the error message to clarify that for him > so how about this ? > > table_user[username].requires = IS_NOT_EMPTY(self.messages.is_empty) > if username == 'username' else IS_EMAIL(self.messages.invalid_email) > > Now if I'm using email authentication, user life becomes easier
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.