|
|
|
@ -1918,9 +1918,9 @@ static int process_message(struct mansession *s, struct message *m)
|
|
|
|
|
astman_send_error(s, m, "Missing action in request");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
if (!ast_strlen_zero(id)) {
|
|
|
|
|
if (!ast_strlen_zero(id))
|
|
|
|
|
snprintf(idText, sizeof(idText), "ActionID: %s\r\n", id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!strcasecmp(action, "Challenge")) {
|
|
|
|
|
char *authtype = astman_get_header(m, "AuthType");
|
|
|
|
|
|
|
|
|
@ -1942,7 +1942,7 @@ static int process_message(struct mansession *s, struct message *m)
|
|
|
|
|
sleep(1);
|
|
|
|
|
astman_send_error(s, m, "Authentication failed");
|
|
|
|
|
return -1;
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
s->authenticated = 1;
|
|
|
|
|
if (option_verbose > 1) {
|
|
|
|
|
if (displayconnects) {
|
|
|
|
@ -1953,7 +1953,6 @@ static int process_message(struct mansession *s, struct message *m)
|
|
|
|
|
astman_send_ack(s, m, "Authentication accepted");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
struct manager_action *tmp;
|
|
|
|
|
ast_mutex_lock(&s->__lock);
|
|
|
|
|