User = null?? after...
 
Notifications
Clear all

User = null?? after User.Load

3 Posts
2 Users
0 Reactions
70.7 K Views
(@simon)
Posts: 2
New Member
Topic starter
 

I am setting  the combu to a new pc , and everything seems good,but

 

On  http://localhost/combu/admin/users.php  

I create 5 new users ,and I can check them on Web ,

but  on Unity,  when I try to Login with new user , User.Load, always get  user =null,(So I try to register again ,it said",register failed: This username has already been taken")

but on another PC, I can get the user info correctly.frownfrownwacko

New PC is a HP laptop,  with only one SSD,I install XAMPP on C:

I can not find other differences.

 

any advice??? Plz hurry upfrown

 
Posted : 30/01/2017 9:01 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

We found a bug in Create Player action of admin console, basically it's saving the password not encrypted.

At line 41 of /admin/users.php (there should be the enclosing "}" of "else if ($newPassword != $confirmPassword)") you should replace "}" with the following lines:

} else {
   unset($_REQUEST["Password"]);
   $user->Password = md5($newPassword);
}

This change will be added to the next update that we're preparing with new features.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 30/01/2017 11:46 am
(@simon)
Posts: 2
New Member
Topic starter
 

It works ,thanksbiggrinbiggrin

 
Posted : 30/01/2017 3:48 pm
Share: