Jump to content
  • 0

Mysql Import Passwords


Question

Posted

Hi,

 

It seems that if you do a backup of Blesta and then import it on another installation that the passwords no longer work and all need resetting? Is there something I need to do to make them all work again? Bit annoying if all clients have to then reset their password by email.

6 answers to this question

Recommended Posts

  • 0
Posted

This wouldn't be a bug as your other installation is using a different key when hashing passwords. Your system key (set in the Blesta config file) needs to be the same, otherwise all encrypted data will be unrecoverable.

  • 0
Posted

You need to enable legacy password support in config/blesta.php http://docs.blesta.com/display/user/Configuration

 

Blesta 2 uses MD5 passwords for user accounts. Blesta 3.0 uses bcrypted HMAC SHA 256 passwords. Enabling legacy support allows clients with imported MD5 passwords to login.. and once they do, they are converted to the new password format.

 

We suggest enabling legacy password support, and then disabling it after a reasonable amount of time.

  • 0
Posted

You need to enable legacy password support in config/blesta.php http://docs.blesta.com/display/user/Configuration

 

Blesta 2 uses MD5 passwords for user accounts. Blesta 3.0 uses bcrypted HMAC SHA 256 passwords. Enabling legacy support allows clients with imported MD5 passwords to login.. and once they do, they are converted to the new password format.

 

We suggest enabling legacy password support, and then disabling it after a reasonable amount of time.

 

What about when I exported my Blesta 3 passwords. Are these MD5 or as Tyson said simply a case of me changing a system key so that the 3.0 export works on a new import.

 

Is this value stored in the database anywhere so I can see what it was on the old installation?

  • 0
Posted

What about when I exported my Blesta 3 passwords. Are these MD5 or as Tyson said simply a case of me changing a system key so that the 3.0 export works on a new import.

 

Is this value stored in the database anywhere so I can see what it was on the old installation?

 

If you originally imported from 2.5, the passwords as stored in Blesta 3 will be the same MD5 hashes unless/until the user logs in and the password is updated. If you look at the users table, password field, it should be pretty obvious which passwords are MD5 and which are not. MD5 passwords are 16 byte, and will appear shorter than new passwords.

  • 0
Posted

If you originally imported from 2.5, the passwords as stored in Blesta 3 will be the same MD5 hashes unless/until the user logs in and the password is updated. If you look at the users table, password field, it should be pretty obvious which passwords are MD5 and which are not. MD5 passwords are 16 byte, and will appear shorter than new passwords.

 

Hey Paul,

 

Exported from 3.0. Never had 2.5

  • 0
Posted

Hey Paul,

 

Exported from 3.0. Never had 2.5

As Tyson pointed out, you need to have the same cipher keys in your /config/blesta.php config file as you did in the system you exported from.

 

Moved to support forum as not a bug.

Join the conversation

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

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...