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
|
![](image.php?s=e56a8c91683ca240c84c84fa71e95e76&u=1&dateline=1409282628) |
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:39 PM.
Currently Active Users: 9835 (0 members and 9835 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members,
jolob.