/plugins/change_password/backend/poppassd.php

Description

Poppassd change password backend

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

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 85)
void cpw_poppassd_go ( $username,  $old_pw,  $new_pw, [ $debug = 0])
  • $username
  • $old_pw
  • $new_pw
  • $debug
cpw_poppassd_readfb (line 72)
void cpw_poppassd_readfb ( $pop_socket,  &$result,  &$messages, [ $debug = 0])
  • $pop_socket
  • &$result
  • &$messages
  • $debug

Documentation generated on Wed, 26 Nov 2014 04:19:10 +0100 by phpDocumentor 1.4.3