auth::local::password::recovery_state (private)

 auth::local::password::recovery_state user_id

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

Return the delivery address and a digest that binds a reset to the current local credentials and email address. Call with the user locked.

Parameters:
user_id (required)

Partial Call Graph (max 5 caller/called nodes):
auth::local::password::RetrievePassword auth::local::password::RetrievePassword (private) auth::local::password::recovery_state auth::local::password::recovery_state auth::local::password::RetrievePassword->auth::local::password::recovery_state auth::local::password::apply_recovery auth::local::password::apply_recovery (private) auth::local::password::apply_recovery->auth::local::password::recovery_state auth::authority::local auth::authority::local (public) auth::local::password::recovery_state->auth::authority::local db_0or1row db_0or1row (public) auth::local::password::recovery_state->db_0or1row db_string db_string (public) auth::local::password::recovery_state->db_string

Testcases:
No testcase defined.
Source code:
    set local_authority [auth::authority::local]
    if {![db_0or1row recovery_credentials {
        select password, salt from users
         where user_id = :user_id and authority_id = :local_authority
    }]} {
        return {}
    }
    set email [db_string recovery_email {
        select email from parties where party_id = :user_id for update
    } -default ""]
    if {$email eq ""} {
        return {}
    }
    set context [ns_crypto::md string -digest sha256 -encoding hex [list $password $salt $email]]
    return [list $email $context]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-authentication/tcl/local-procs.xql

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