Skip to content

Commit

Permalink
Fix 0013901: SOAP API allows invoking methods without proper authenti…
Browse files Browse the repository at this point in the history
…cation

Note: only applied to 1.2.x not 'next', as the code is changing anyway
  • Loading branch information
root committed Feb 16, 2012
1 parent 069239e commit f5106be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/soap/mc_api.php
Expand Up @@ -51,6 +51,11 @@ function mci_check_login( $p_username, $p_password ) {

# do not use password validation.
$p_password = null;
} else {
if( is_blank( $p_password ) ) {
# require password for authenticated access
return false;
}
}

if( false === auth_attempt_script_login( $p_username, $p_password ) ) {
Expand Down

0 comments on commit f5106be

Please sign in to comment.