Jump to content

3.6.1 to 3.7.2 upgrade - passwords not showing


synchro

Recommended Posts

I got a response - pretty quick I might say:

 

<blockquote>Hi David,

 

This can occur when you run the upgrade to 3.7 before all the new versions files for 3.7.1 have completed uploading. To resolve the issue, you would need to restore your DB backup from prior to the upgrade and then re-run the upgrade script.

 

Regards,

 

Matt</blockquote>

 

I'm pretty sure all the files were uploaded, so I have asked him if there are any other causes (and too much has happened to restore the database)

Link to comment
Share on other sites

Matt wrote back to me, and that seems like that reason. I'm just guessing, but perhaps the encryption has changed and so the passwords no longer work, and would have been decoded and recoded with the new crypt should all the files have been present.

 

We did a test to confirm this, by looking at a client who would not have logged in, set the password to what it was first set as, and the value changed in the database.

Link to comment
Share on other sites

If you can, restore the database and be completely certain the files are uploaded first. Other than that, run the above script to reset all passwords. I'm sure that we had uploaded the files, but we were too far along to restore the database to find out if another upgrade fixed it.

Link to comment
Share on other sites

It would help if I posted the script:

 

<?php

 

include("dbconnect.php");

include("includes/functions.php");

 

$result = mysql_query("SELECT * FROM tblclients");

while ($data = mysql_fetch_array($result)) {

$clientid = $data["id"];

$length = 8;

$seeds = 'abcdef0123456789';

$str = null;

$seeds_count = strlen($seeds) - 1;

for ($i = 0; $length > $i; $i++) {

$str .= $seeds[rand(0, $seeds_count)];

}

$userpassword = encrypt($str);

$result2 = mysql_query("UPDATE tblclients SET password='$userpassword' WHERE id='$clientid'");

}

 

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated