webauthn::WebAuthn method lookup_user_id (protected)

 <instance of webauthn::WebAuthn[i]> lookup_user_id \
    [ -credential_id credential_id ]

Defined in packages/webauthn/tcl/webauthn-procs.tcl

Switches:
-credential_id (optional)

Testcases:
No testcase defined.
Source code:
set user_id [db_string _ {
    select user_id from webauthn_credentials
    where credential_id = :credential_id
} -default 0]
return $user_id
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: