aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-19 20:27:44 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-19 20:27:44 +0000
commitb4ace9c5c46c79c4ff4dd8cf29d77710382229ad (patch)
tree9cdcf5853807b9c15bfe0907c102c8dce4e999e3 /apps
parente303de5b1fa7fc017143fa6adb6fdec856d484c7 (diff)
Call reset_user_pw upon changing the password using externpass (issue #7395 reported by Ryan Cumming)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@34911 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 32e9f849e..96973623f 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -763,8 +763,10 @@ static void vm_change_password_shell(struct ast_vm_user *vmu, char *newpassword)
{
char buf[255];
snprintf(buf,255,"%s %s %s %s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword);
- if (!ast_safe_system(buf))
+ if (!ast_safe_system(buf)) {
+ reset_user_pw(vmu->context, vmu->mailbox, newpassword);
ast_copy_string(vmu->password, newpassword, sizeof(vmu->password));
+ }
}
static int make_dir(char *dest, int len, char *context, char *ext, char *mailbox)