auth::local::password::apply_recovery (private)

 auth::local::password::apply_recovery new_password user_id expected

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

Apply the password change inside the token transaction.

Parameters:
new_password (required)
user_id (required)
expected (required)

Partial Call Graph (max 5 caller/called nodes):
ad_change_password ad_change_password (public) auth::local::password::recovery_state auth::local::password::recovery_state (private) sec_change_user_auth_token sec_change_user_auth_token (public) auth::local::password::apply_recovery auth::local::password::apply_recovery auth::local::password::apply_recovery->ad_change_password auth::local::password::apply_recovery->auth::local::password::recovery_state auth::local::password::apply_recovery->sec_change_user_auth_token

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 PASSWORD_RECOVERY STALE} "Stale password reset token"
    }
    ad_change_password $user_id $new_password
    sec_change_user_auth_token $user_id
    return $user_id
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-authentication/tcl/local-procs.xql

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