File_Passwd::verifyPassword()

File_Passwd::verifyPassword() -- compare a password

Synopsis

require_once 'File/Passwd.php';

boolean File_Passwd::verifyPassword (string $user string $pass)

Description

Compares a password with the password of an user entry in the password file.

Parameter

Return value

boolean - Returns TRUE on success, FALSE on failure.

Throws

Table 24-1. Possible PEAR_Error values

Error codeError messageReasonSolution
2 " Couldn't add user user, because the user already exists! " The user entry could not written to the temporary file, the user entry already exists. Check typing of the $user or you maybe looking for File_Passwd::modUser()

Note

This function can not be called statically