Skip to content
Browse files

Return proper variable.

  • Loading branch information...
1 parent efd9a60 commit ba2fe818ece3ab07b65e343e4fdd1728e1293cac @wolfman2000 committed Dec 24, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/model/doctrine/PPE_User_UserTable.class.php
View
6 lib/model/doctrine/PPE_User_UserTable.class.php
@@ -11,8 +11,10 @@ public function addUser($name, $email, $pass)
$user->setName($name);
$user->setEmail($email);
+ $md5 = hash("md5", $pass . $salt);
+
$cond = new PPE_User_Condiment();
- $cond->setOregano(hash("md5", $pass . $salt));
+ $cond->setOregano($md5);
$cond->setSalt($salt);
$cond->setPepper(hash("sha256", $pass . $salt));
@@ -25,7 +27,7 @@ public function addUser($name, $email, $pass)
$user->PPE_User_Powers[] = $role;
$user->save();
- return $salt; // Needed for email confirmation.
+ return $md5; // Needed for email confirmation.
}
public function getIDByEmail($email)

0 comments on commit ba2fe81

Please sign in to comment.
Something went wrong with that request. Please try again.