auth::send_email_verification_email (private)
auth::send_email_verification_email -user_id user_id
Defined in packages/acs-authentication/tcl/authentication-procs.tcl
Sends out an email to the user that lets them verify their email. Throws an error if we couldn't send out the email.
- Switches:
- -user_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # These are used in the messages below set token [auth::get_user_secret_token -user_id $user_id] set to_addr [party::get -party_id $user_id -element email] set subsite_url [site_node::get_url -node_id [ad_conn subsite_node_id]] set confirmation_url [export_vars -base "[ad_url]$subsite_url/register/email-confirm" { token user_id }] set system_name [ad_system_name] set subsite_id [expr {[ns_conn isconnected] ? [ad_conn subsite_id] : [subsite::main_site_id]}] set legacy_from [parameter::get -package_id $subsite_id -parameter NewRegistrationEmailAddress -default [ad_system_owner]] auth::email::send -template verify -user_id $user_id -to $to_addr -default_from "\"$system_name\" <$legacy_from>" -values [list system_name $system_name confirmation_url $confirmation_url]Generic XQL file: packages/acs-authentication/tcl/authentication-procs.xql
PostgreSQL XQL file: packages/acs-authentication/tcl/authentication-procs-postgresql.xql
Oracle XQL file: packages/acs-authentication/tcl/authentication-procs-oracle.xql