summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-06-19 20:29:08 +0000
committerJoshua Colp <jcolp@digium.com>2006-06-19 20:29:08 +0000
commite6958d9c5e29896ec26ca6712949ee37aa7bf769 (patch)
tree99c81460fd16beafa794fe5f04766704f2b14265 /apps
parentea051836523aa2379210ad9f22b952e172902b2d (diff)
Merged revisions 34911 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r34911 | file | 2006-06-19 17:27:44 -0300 (Mon, 19 Jun 2006) | 2 lines Call reset_user_pw upon changing the password using externpass (issue #7395 reported by Ryan Cumming) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 f5c362d6b..629a92a36 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -788,8 +788,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, const char *context, const char *ext, const char *folder)