提交 7618dfbe authored 作者: Michael Jerris's avatar Michael Jerris

mod_voicemail: fix password check (MODAPP-234)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12644 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9694ce04
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论