auth::local::password::apply_registration_verification (private)

 auth::local::password::apply_registration_verification user_id \
    expected

Defined in packages/acs-authentication/tcl/local-procs.tcl

Verify the address and issue the setup token inside the redemption transaction.

Parameters:
user_id (required)
expected (required)

Partial Call Graph (max 5 caller/called nodes):
auth::local::password::recovery_state auth::local::password::recovery_state (private) auth::set_email_verified auth::set_email_verified (public) auth::token::issue auth::token::issue (public) auth::local::password::apply_registration_verification auth::local::password::apply_registration_verification auth::local::password::apply_registration_verification->auth::local::password::recovery_state auth::local::password::apply_registration_verification->auth::set_email_verified auth::local::password::apply_registration_verification->auth::token::issue

Testcases:
No testcase defined.
Source code:
    lassign [auth::local::password::recovery_state $user_id] email current
    if {$email eq "" || $current ne $expected} {
        return -code error -errorcode {OPENACS REGISTRATION_VERIFICATION STALE} "Stale registration verification link"
    }
    auth::set_email_verified -user_id $user_id
    return [auth::token::issue -purpose password_reset -user_id $user_id  -ttl 1800 -context $current]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-authentication/tcl/local-procs.xql

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