mod_voicemail: fix password check (MODAPP-234)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12644 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9694ce0407
commit
7618dfbe1c
|
@ -2075,20 +2075,20 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro
|
|||
const char *val = switch_xml_attr_soft(x_param, "value");
|
||||
|
||||
if (!strcasecmp(var, "a1-hash")) {
|
||||
thehash = val;
|
||||
thehash = switch_core_session_strdup(session, val);
|
||||
} else if (!strcasecmp(var, "vm-a1-hash")) {
|
||||
vmhash = val;
|
||||
vmhash = switch_core_session_strdup(session, val);
|
||||
} else if (!auth && !thepass && !strcasecmp(var, "password")) {
|
||||
thepass = val;
|
||||
thepass = switch_core_session_strdup(session, val);
|
||||
} else if (!auth && !strcasecmp(var, "vm-password")) {
|
||||
if (!switch_strlen_zero(val) && !strcasecmp(val, "user-choose")) {
|
||||
if (switch_strlen_zero(cbt.password)) {
|
||||
auth = 1;
|
||||
} else {
|
||||
thepass = val;
|
||||
thepass = switch_core_session_strdup(session, val);
|
||||
}
|
||||
} else {
|
||||
thepass = val;
|
||||
thepass = switch_core_session_strdup(session, val);
|
||||
}
|
||||
} else if (!strcasecmp(var, "vm-mailto")) {
|
||||
vm_email = switch_core_session_strdup(session, val);
|
||||
|
|
Loading…
Reference in New Issue