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):
- 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