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

Commit

Permalink
Unused decodeUserPassword method (use AJXP_Utils instead).
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Mar 27, 2015
1 parent e75661c commit 3b7d464
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/src/plugins/core.conf/class.AbstractAjxpUser.php
Expand Up @@ -385,16 +385,6 @@ abstract public function getTemporaryData($key);

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

/** Decode a user supplied password before using it */
public function decodeUserPassword($password)
{
if (function_exists('mcrypt_decrypt')) {
// We have encoded as base64 so if we need to store the result in a database, it can be stored in text column
$password = trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($this->getId()."\1CDAFx¨op#"), base64_decode($password), MCRYPT_MODE_ECB), "\0");
}
return $password;
}

public function setGroupPath($groupPath, $update = false)
{
if(strlen($groupPath) > 1) $groupPath = rtrim($groupPath, "/");
Expand Down

0 comments on commit 3b7d464

Please sign in to comment.