Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Projects > The Bug Tracker > Bug

Notices

admincp/user.php Issue Tools
issueid=35 01-22-2014 02:18 PM
Member
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
Project The Bug Tracker
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.
Reply
01-27-2014 02:44 AM
Member
 
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.. :-)
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT -5. The time now is 05:35 PM.

Currently Active Users: 467 (0 members and 467 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636