Current time: 05-22-2012, 09:56 PM Hello There, Guest! (LoginRegister)

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Admin CP: Staff Data
01-03-2009, 04:11 PM (This post was last modified: 01-03-2009 04:11 PM by Kevin.)
Post: #1
Bug Admin CP: Staff Data
It seems after a staff member uses the change your password tool everyone in the table's password gets messed up. So nobody can log in. It's happened 4 or so times now. And it's getting annoying. Any ideas, Jonny? We haven't been able to narrow down exactly when or how this happens, however.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
01-03-2009, 08:03 PM
Post: #2
RE: Admin CP: Staff Data
I'll check when I've got time. Ask your staff members not to use the feature.

Jonny H - THT Main Developer & Founder
Find all posts by this user
07-19-2009, 07:25 AM
Post: #3
RE: Admin CP: Staff Data
I am not 100% sure, but in ./admin/pages/pass.php:

PHP Code:
$newpass =     md5(md5($main->postvar['new']) . md5($data['salt']));
                            
$db->query("UPDATE `<PRE>staff`  SET `password` = '{$newpass}'");
                            
$main->errors("Password changed!"); 

There isn't anything specifying which user's pass to change. I think it should be something like this:
PHP Code:
$newpass =     md5(md5($main->postvar['new']) . md5($data['salt']));
                            
$db->query("UPDATE `<PRE>staff` WHERE `$user` SET `password` = '{$newpass}'");
                            
$main->errors("Password changed!"); 
Find all posts by this user
07-19-2009, 02:20 PM
Post: #4
RE: Admin CP: Staff Data
This is what we have for the latest development version of THT.
PHP Code:
$newpass md5(md5($main->postvar['new']) . md5($data['salt']));
$db->query("UPDATE `<PRE>staff` SET `password` = '{$newpass}' WHERE `id` = '{$_SESSION['user']}'");
$main->errors("Password changed!"); 

If this problem still exists after 1.2, then it probably has to do something with the salt.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 2 Guest(s)