Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 3b7d464

Browse files
committed
Unused decodeUserPassword method (use AJXP_Utils instead).
1 parent e75661c commit 3b7d464

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

core/src/plugins/core.conf/class.AbstractAjxpUser.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -385,16 +385,6 @@ abstract public function getTemporaryData($key);
385385

386386
abstract public function saveTemporaryData($key, $value);
387387

388-
/** Decode a user supplied password before using it */
389-
public function decodeUserPassword($password)
390-
{
391-
if (function_exists('mcrypt_decrypt')) {
392-
// We have encoded as base64 so if we need to store the result in a database, it can be stored in text column
393-
$password = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($this->getId()."\1CDAFx¨op#"), base64_decode($password), MCRYPT_MODE_ECB), "\0");
394-
}
395-
return $password;
396-
}
397-
398388
public function setGroupPath($groupPath, $update = false)
399389
{
400390
if(strlen($groupPath) > 1) $groupPath = rtrim($groupPath, "/");

0 commit comments

Comments
 (0)