Automatic md5 encryption of written passwords has been set up in the model. When editing administrator information, if the password is not changed, the original password will be encrypted by md5 again when the update operation is performed, resulting in an incorrect password. Is there any good solution? Solution
If you think it’s complicated, just add a separate password update. Determine whether the password is 32 digits. If it is not 32 digits, it means you have entered a new password. At this time, just perform an MD5 encryption update.