Skip to content

Commit 492db0a

Browse files
authored
Merge pull request #2078 from bossloper/patch-34
Fix #2066
2 parents e4d6fe3 + f62f770 commit 492db0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manager/processors/login.processor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// initiate the content manager class
4040
// for backward compatibility
4141

42-
$username = isset($_POST['username']) ? $modx->db->escape($modx->htmlspecialchars($_POST['username'], ENT_NOQUOTES)) : '';
42+
$username = isset($_REQUEST['username']) ? $modx->db->escape($modx->htmlspecialchars($_REQUEST['username'], ENT_NOQUOTES)) : '';
4343
$givenPassword = isset($_POST['password']) ? $modx->htmlspecialchars($_POST['password'], ENT_NOQUOTES) : '';
4444
$captcha_code = isset($_POST['captcha_code']) ? $_POST['captcha_code'] : '';
4545
$rememberme = isset($_POST['rememberme']) ? $_POST['rememberme'] : '';
@@ -174,11 +174,11 @@
174174
// check user password - local authentication
175175
$hashType = $modx->manager->getHashType($dbasePassword);
176176
if($hashType == 'phpass') {
177-
$matchPassword = login($username, $_POST['password'], $dbasePassword);
177+
$matchPassword = login($username, $_REQUEST['password'], $dbasePassword);
178178
} elseif($hashType == 'md5') {
179-
$matchPassword = loginMD5($internalKey, $_POST['password'], $dbasePassword, $username);
179+
$matchPassword = loginMD5($internalKey, $_REQUEST['password'], $dbasePassword, $username);
180180
} elseif($hashType == 'v1') {
181-
$matchPassword = loginV1($internalKey, $_POST['password'], $dbasePassword, $username);
181+
$matchPassword = loginV1($internalKey, $_REQUEST['password'], $dbasePassword, $username);
182182
} else {
183183
$matchPassword = false;
184184
}

0 commit comments

Comments
 (0)