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):
auth::check_local_account_status auth::check_local_account_status (private) auth::send_email_verification_email auth::send_email_verification_email auth::check_local_account_status->auth::send_email_verification_email auth::create_local_account auth::create_local_account (public) auth::create_local_account->auth::send_email_verification_email ad_conn ad_conn (public) auth::send_email_verification_email->ad_conn ad_system_name ad_system_name (public) auth::send_email_verification_email->ad_system_name ad_system_owner ad_system_owner (public) auth::send_email_verification_email->ad_system_owner ad_url ad_url (public) auth::send_email_verification_email->ad_url auth::email::send auth::email::send (private) auth::send_email_verification_email->auth::email::send

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

[ hide source ] | [ make this the default ]
Show another procedure: