Skip to content
Browse files

bugfix: require /core/lib/security.lib.php at the setPassword method …

…of the User class in order to use dol_hash() function
  • Loading branch information...
1 parent 034b0fc commit 812c93f7b91898071524d16584e3998d7996b7dc Ernesto committed Mar 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 htdocs/user/class/user.class.php
1 htdocs/user/class/user.class.php
@@ -1236,6 +1236,7 @@ function update_last_login_date()
function setPassword($user, $password='', $changelater=0, $notrigger=0, $nosyncmember=0)
global $conf, $langs;
+ require_once(DOL_DOCUMENT_ROOT ."/core/lib/security.lib.php");
require_once(DOL_DOCUMENT_ROOT ."/core/lib/security2.lib.php");

2 comments on commit 812c93f

hregis commented on 812c93f Mar 4, 2012

security.lib.php is already load by default for all application
it's not necessary !

netors commented on 812c93f Mar 4, 2012

oh sorry it was not loading on my end,
i attempted to install the application using the install folder and got a blank page at the etape5.php
did some digging and this seem to fix it

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