Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> usrpasswordtest()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UsrPasswordTest()
------------------------------------------------------------------------------
 Purpose:
 Verify a user password.

 Syntax:
 bResult = UsrPasswordTest(lpszUserName, lpszPassword)

 Parameters:
 lpszUserName The user name.
 lpszPassword The password.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 UsrPassTst()

 Description:
 UsrPasswordTest() returns TRUE if the password of the user specified by
 lpszUserName is equal to lpszPassword.

 Returns FALSE if not, or if an error occurs.

 Example:
 // To test that the password of user KERRY is POLLY:
 if ( UsrPasswordTest( "KERRY", "POLLY" ) )
    ? "The password was entered correctly"
 endif

 Notes:
 If FALSE is returned, check NWErrorGet().

 For NetWare 2.x and 3.x the object name and password MUST both be in
 uppercase.

See Also: UsrPasswordChange()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson