xo::Authorize method lookup_user_id (protected)
<instance of xo::Authorize> lookup_user_id [ -email email ]
Defined in packages/xooauth/tcl/authorize-procs.tcl
- Switches:
- -email (optional)
- Testcases:
- No testcase defined.
Source code: set user_id [party::get_by_email -email [string tolower $email]] if {$user_id eq ""} { # # Here one could do some more checks or alternative lookups # } return [expr {$user_id eq "" ? 0 : $user_id}]XQL Not present: Generic, PostgreSQL, Oracle