request:set-current-user($user-name as xs:string, $password as xs:string) xs:boolean?
Change the user identity for the current HTTP session. Subsequent XQueries in the session will run with the new user identity.
$user-name
The user name
$password
The password
Returns true if the user name and password represent a valid user
Deprecated: Moved to session module. See session:set-current-user.
This function could be removed at anytime during the 1.5 development and will be removed in the 1.6 release.