Hi Jim,

thanks for your comments.

Assuming you are registering using the default user() action,
depending on your settings

auth.settings.registration_requires_verification = False
auth.settings.registration_requires_approval = False

web2py should display one of the following messages:

auth.messages.unable_send_email
auth.messages.email_sent
auth.messages.registration_pending
auth.messages.registration_successful

How does your auth.settings look like?



On Jan 10, 7:57 pm, JimK <jkel...@gmail.com> wrote:
> Hello Massimo,
>
> First off, I'd like to tell you how much I love the web2py framework!
> Thanks for the time and effort, it was well worth it!
>
> Now to my issue:
> I'm just not getting it.  I added
> auth.messages.registration_successful = 'some string' to my db.py
> model but I'm not sure what it is that I need to do get the message to
> display on my view after registering a new account.  The example that
> was given stated that 'Views are handled the usual web2py way' which I
> assume to mean that I need to pass the text from the controller to the
> view.  But I'm a bit fuzzy on what the 'messages' objects actually
> do.  If there's some documentation on this, please point me to it.  If
> not, a brief explanation would be appreciated.
>
> Thanks again,
>
> Jim
>
> On Jan 10, 5:55 am, Mengu <whalb...@gmail.com> wrote:
>
> >http://mdp.cti.depaul.edu/examples/default/tools
>
> > See the "Custom Authentication" section.
>
> > On Jan 10, 12:19 pm, JimK <jkel...@gmail.com> wrote:
>
> > > I can't seem to figure out how to display a session.flash message on
> > > the following page after a registration.  I think the answer will have
> > > something to do with auth.settings.register_onaccept but I'm not sure
> > > how to pass the form object to this setting.  Any help would be
> > > appreciated.
>
> > > Thanks,
>
> > > Jim
>
>
-- 
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.


Reply via email to