Defined in packages/acs-authentication/tcl/authentication-procs.tclIf the current session is not authenticated, redirect to the
login page, and aborts the current page script.
Otherwise, returns the user_id of the user logged in.
Use this in a page script to ensure that only registered and authenticated
users can execute the page, for example for posting to a forum.
- Switches:
- -level (defaults to
"ok") (optional) - -account_status (defaults to
"ok") (optional)
- Returns:
- user_id of user, if the user is logged in.
Otherwise will issue a returnredirect and abort the current page.
See Also: