email_change_pass_post.sh - passwd is empty?

michael

Verified User
Joined
Mar 9, 2010
Messages
7
Hi All,

I just used the email_change_pass_post.sh and email_change_pass_pre.sh custom scripts and noticed that the passwd variable is empty when the user uses the /CMD_CHANGE_EMAIL_PASSWORD page.

What can be done te receive the new password?
(this is working when the password is changed within DA)

Code:
_ENV = Array
(
    [TERM] => dumb
    [user] => tester
    [username] => myuser
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin
    [_] => /usr/local/directadmin/scripts/custom/email_change_pass_post.sh
    [PWD] => /usr/local/directadmin
    [domain] => directadmin.com
    [LANG] => en_US.UTF-8
    [SHLVL] => 3
    [passwd] =>
)

Thanks,
Michael
 
Last edited:
Hi John,

The password is changed in DA. Checked in debug mode and the passwords are send:
Post string: email=****&oldpassword=****&password1=****&password2=****

However the problem is that the custom script (email_change_pass_post.sh) does not receive the new password.
I just checked again (using the latest DA version) and got the same ENV vars as before, where the passwd field is empty.

Can you please fix this?

Thanks,
Michael
 
Back
Top