Authentication of user on htpasswd file.
The password must be crypted in the file
Namespace Domframework
/** User authentication against .htpasswd file A .htpasswd can be created by the 'htpasswd' command for Apache, and contain toto@toto.com:$2y$05$uHCUNqicE7Pku3MK1qZaDuJxP/pocqCcEAnacZBjsfWgW9EcuG5y2
/** The application name
/** The .htpasswd file to use for authentication
/** Try to authenticate the email/password of the user@param string $emailEmail to authenticate@param string $passwordPassword to authenticate
/** Method to change the password@param string $oldpasswordThe old password (to check if the user have the rights to change the password)@param string $newpasswordThe new password to be recorded
/** There is no real connection to htpasswd
/** Return all the parameters recorded for the authenticate user
/** List all the users available in the database Return firstname, lastname, mail, with mail is an array
/** Method to disconnect the authenticated user
/** Method to overwrite the password (without oldpassword check) Must be reserved to the administrators. For the users, use changepassword method@param string $emailthe user identifier to select@param string $newpasswordThe new password to be recorded
/** Display the authentication page The message is displayed to the user in case of error The url is the caller url to go back if authentication is correct@param string $baseURLThe URL base to use for the links@param string|null $messageMessage to display to the user@param string|null $urlURL to go back after successful authentication@param mixed $alreadyAuthIf the user is already authenticated, the value will be displayed if the user is coming on the page.