by
KK » Tue Feb 27, 2018 1:26 am
how to remove the option that users receives email to confirm his account (activation link)? I don't need that function..
Take a look at the code you are using (it should be something like the following sample used in the docs of extended users)
- Code: Select all
<cms:if k_success >
<cms:check_spam email=frm_extended_user_email />
<cms:db_persist_form
_invalidate_cache='0'
k_page_name = "<cms:random_name />"
k_publish_date = '0000-00-00 00:00:00'
/>
<cms:if k_success >
<cms:send_mail from="<cms:php>echo K_EMAIL_FROM;</cms:php>" to=frm_extended_user_email subject='New Account Confirmation' debug='1'>
Please click the following link to activate your account:
<cms:activation_link frm_extended_user_email />
Thanks,
Website Name
</cms:send_mail>
<cms:set_flash name='success_msg' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
You'll see that in the success block following <cms:db_persist_form >, the code is using <cms:send_mail> to send an activation mail to the user.
If you don't want that functionality, simply remove that <cms:send_mail> statement.
Now since the user won't be able to activate the account herself, the onus of doing so will be on the administrator who will have to 'publish' the accounts to activate them.
Therefore it would be prudent in such cases to send an email to the administrator instead informing her of the fact that a new account has been created that needs her attention.
The revised code could become (the embedded snippet will send mail to the admin ) -
- Code: Select all
<cms:if k_success >
<!-- send intimation email too admin -->
<cms:embed 'emails/account_registration.html' />
<cms:set_flash name='success_msg' value='1' />
<cms:redirect k_page_link />
</cms:if>