01-22-2014 02:18 PM
|
|
admincp/user.php
Changing the user password from admin panel does not same to work?!?
Code:
@@ -35,8 +35,8 @@
// A form has been submitted, we will be processing the request.
if($mysidia->input->post("pass1")){
$newsalt = codegen(15, 0);
- $password = passencr($username, $pass1, $newsalt);
- $mysidia->db->update("users", array("password" => $password), "uid='{$mysidia->input->get("uid")}'");
+ $password = passencr($user->username, $mysidia->input->post("pass1"), $newsalt);
+ $mysidia->db->update("users", array("password" => $password, "salt" => $newsalt), "uid='{$mysidia->input->get("uid")}'");
|
|
Issue Details
|
Category Unknown
Status Unconfirmed
Priority 5 - Medium
Affected Version Mys v1.3.4
Fixed Version (none)
Users able to reproduce bug
0
Users unable to reproduce bug
0
Assigned Users
(none)
Tags
(none)
|
|
01-27-2014 01:50 AM
|
 |
Administrator, Lead Coder
|
|
|
umm it does not work? I will run a few test cases to see where the problem is, thx for pointing it out. This does not seem to be a Priority 2 level bug though, even if its confirmed.
|
01-27-2014 02:44 AM
|
|
It was not working for me.. Look at the if condition
Code:
if($mysidia->input->post("pass1"))
and than you are checking $pass1 which is not defined I think
Code:
$password = passencr($username, $pass1, $newsalt)
but I am not sure yet.. :-)
|
All times are GMT -5. The time now is 08:38 AM.
Currently Active Users: 4535 (0 members and 4535 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members,
jolob.