File/plugins/change_password/backend/poppassd.php

Description

Poppassd change password backend

Functions
cpw_poppassd_closeport (line 65)
void cpw_poppassd_closeport ( $pop_socket,  &$messages, [ $debug = 0])
  • $pop_socket
  • &$messages
  • $debug
cpw_poppassd_dochange (line 49)

This is the function that is specific to your backend. It takes

the current password (as supplied by the user) and the desired new password. It will return an array of messages. If everything was successful, the array will be empty. Else, it will contain the errormessage(s). Constants to be used for these messages: CPW_CURRENT_NOMATCH -> "Your current password is not correct." CPW_INVALID_PW -> "Your new password contains invalid characters."

  • return: Array of error messages.
array cpw_poppassd_dochange (array $data)
  • array $data: data The username/currentpw/newpw data.
cpw_poppassd_go (line 86)
void cpw_poppassd_go ( $username,  $old_pw,  $new_pw, [ $debug = 0])
  • $username
  • $old_pw
  • $new_pw
  • $debug
cpw_poppassd_readfb (line 73)
void cpw_poppassd_readfb ( $pop_socket,  &$result,  &$messages, [ $debug = 0])
  • $pop_socket
  • &$result
  • &$messages
  • $debug

Documentation generated on Sun, 22 Nov 2009 17:36:44 +0200 by phpDocumentor 1.4.3