ASK Environment Variable for CMD_CHANGE_EMAIL_PASSWORD

The simplest way to learn the environmental variables would be use the printenv script:
/var/www/cgi-bin/printenv

and adjust it such that it either outputs all vars to screen, or to a log (possibly using a non-zero exit status, like "exit 1;";

Johnn
 
No oldpassword, can you add oldpassword variable ?

TERM linux
user info
PATH /sbin:/usr/sbin:/bin:/usr/bin
_ /usr/local/directadmin/scripts/custom/email_change_pass_post.sh
RUNLEVEL 3
runlevel 3
PWD /usr/local/directadmin
LANGSH_SOURCED 1
domain nativeads.net
LANG en_US.UTF-8
PREVLEVEL N
previous N
CONSOLETYPE vt
SHLVL 4
passwd hiddenpasswd
UPSTART_INSTANCE
UPSTART_EVENTS runlevel
UPSTART_JOB rc
PHP_SELF /usr/local/directadmin/scripts/custom/email_change_pass_post.sh
SCRIPT_NAME /usr/local/directadmin/scripts/custom/email_change_pass_post.sh
SCRIPT_FILENAME /usr/local/directadmin/scripts/custom/email_change_pass_post.sh
PATH_TRANSLATED /usr/local/directadmin/scripts/custom/email_change_pass_post.sh
DOCUMENT_ROOT
REQUEST_TIME 1453736521
argv Array
argc 1
Array ( [0] => /usr/local/directadmin/scripts/custom/email_change_pass_post.sh )

Thanks
 
I've looked over the code, and the old password isn't always known.
However, in the case where CMD_CHANGE_EMAIL_PASSWORD (or CMD_API_CHANGE_EMAIL_PASSWORD) is used, then oldpassword will be included.
*any* other password reset methods are used, the old password isn't known, so won't be included.
If you need the variable, ensure you check to ensure it's set before using it.

Pre-release binaries will have this change within about 20 minutes.

John
 
Back
Top