156 | | The welcome message and other messages relating to registration and logging in are in {{{settings.auth.messages}}} |
157 | | which can be set in a {{{customise_auth_user_resource()}}} function in your template's config.py file. To see the |
158 | | messages that can be changed, look for the {{{messages.*}}} lines in the {{{AuthS3.__init__}}} in {{{modules/s3/s3aaa.py}}}. |
159 | | These also show examples of using format elements like {{{%(system_name)s}}} to insert the system name, url, user name, |
160 | | and link to the user's profile. Use the same format elements in your messages to have those inserted. |
| 156 | The welcome message and other messages relating to registration and logging in are in {{{current.auth.messages}}} |
| 157 | which can be set in a {{{customise_auth_user_resource()}}} function in your template's config.py file. |
| 158 | To see the messages that can be changed, look for the {{{messages.*}}} lines in the {{{AuthS3.__init__}}} |
| 159 | function in {{{modules/s3/s3aaa.py}}}. |
| 160 | These also show examples of using format elements like {{{%(system_name)s}}} to insert the system name, |
| 161 | url, user name, and link to the user's profile. Use the same format elements in your messages to have |
| 162 | those inserted. |
| 163 | |
| 164 | Example: |
| 165 | |
| 166 | {{{ |
| 167 | def customise_auth_user_resource(r, resource): |
| 168 | current.auth.messages.welcome_email_subject = "Welcome to %(system_name)s!" |
| 169 | current.auth.messages.welcome_email = \ |
| 170 | """Welcome to %(system_name)s, %(first_name) %(last_name)! |
| 171 | * You can start using %(system_name)s at: %(url)s |
| 172 | * To edit your profile go to: %(url)s%(profile)s |
| 173 | Thank you for registering!""" |
| 174 | }}} |