by
KK » Tue Jun 19, 2018 3:25 pm
Is it possible to not send out that link (just a welcom email), but instead automatically verificate a new signup?
Yes, of course.
If you take a look at the sample code where we create the user account (
https://www.couchcms.com/docs/extended- ... s/post.htm), you'll see that we are explicitly setting the k_publish_date to '0000-00-00 00:00:00' -
- Code: Select all
<cms:db_persist_form
_invalidate_cache='0'
k_page_name = "<cms:random_name />"
k_publish_date = '0000-00-00 00:00:00'
/>
That date is a signal to Couch to create the page as 'unpublished' - i.e. the account in inactive and cannot be used until it is published (by admin or through the activation mail).
If you wish to automatically make the account active, just remove the
k_publish_date = '0000-00-00 00:00:00' part and the account will be active the moment it is created.
You can then send to the user a welcome message instead of the activation link.
Hope it helps.