Thank you Anthony, that works beautifully!

On 14 January 2014 14:56, Anthony <abasta...@gmail.com> wrote:

> As I mentioned, you can change auth.messages.email_sent dynamically:
>
> def user():
>     flash = dict(register='Verification email sent',
>                  request_reset_password='Reset password email sent')
>     auth.messages.email_sent = flash.get(request.args(0), auth.messages.
> email_sent)
>     return dict(form=auth())
>
> Anthony
>
> On Tuesday, January 14, 2014 9:35:09 AM UTC-5, Alex Bush wrote:
>>
>> Appologies if the initial email was confusing and thank you for the reply
>> Anthony, I understand and am using auth.messages.verify_email and
>> auth.messages.verify_email_subject however I wondered if there was any
>> way to set a specific flash message for each situation (verification email
>> sent and password reset email sent) instead of the
>> generic auth.messages.email_sent?
>>
>> At the moment the user is directed to the login page after registering
>> and the only hint of a verification email is the email sent flash.
>>
>> On Tuesday, 14 January 2014 13:46:48 UTC, Anthony wrote:
>>>
>>> On Tuesday, January 14, 2014 7:28:14 AM UTC-5, Alex Bush wrote:
>>>>
>>>> Hi all,
>>>>
>>>> I'm trying to set (custom) messages for both the verification email
>>>> sent for new user registration
>>>>
>>>
>>> Do auth.messages.verify_email and auth.messages.verify_email_subject
>>> not work for you? Note, auth.messages.email_sent is for the flash message
>>> that tells the user an email was sent (it is a generic message, not
>>> specific to the verification email, though you could change it dynamically
>>> to a custom message when the register function is called).
>>>
>>>
>>>> and password reset email sent for existing users.
>>>>
>>>
>>> auth.messages.reset_password_subject and auth.messages.reset_password
>>>
>>> Anthony
>>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/YL1CAdYavN8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to