Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Return proper variable.

  • Loading branch information...
commit ba2fe818ece3ab07b65e343e4fdd1728e1293cac 1 parent efd9a60
Jason Felds authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 lib/model/doctrine/PPE_User_UserTable.class.php
6 lib/model/doctrine/PPE_User_UserTable.class.php
@@ -11,8 +11,10 @@ public function addUser($name, $email, $pass)
11 11 $user->setName($name);
12 12 $user->setEmail($email);
13 13
  14 + $md5 = hash("md5", $pass . $salt);
  15 +
14 16 $cond = new PPE_User_Condiment();
15   - $cond->setOregano(hash("md5", $pass . $salt));
  17 + $cond->setOregano($md5);
16 18 $cond->setSalt($salt);
17 19 $cond->setPepper(hash("sha256", $pass . $salt));
18 20
@@ -25,7 +27,7 @@ public function addUser($name, $email, $pass)
25 27 $user->PPE_User_Powers[] = $role;
26 28
27 29 $user->save();
28   - return $salt; // Needed for email confirmation.
  30 + return $md5; // Needed for email confirmation.
29 31 }
30 32
31 33 public function getIDByEmail($email)

0 comments on commit ba2fe81

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