duanfeng7756 2015-01-20 11:09
浏览 120

如何恢复prestashop的密码?

I clicked on forgot password link and wrote my email but the server didn't send any information regarding password to my mail-id.I have used the following query which causes an error .Please rectify the error..

UPDATE 'ps_employee'
SET 'passwd' = md5(“<3w3kuJFFAMFB4zUR19aTDvbnomepQJFTd60NUCns5HDtqf9mEkv6APFy><samyak02>”) 
WHERE 'email' = “<abhijain.cse@gmail.com>”;

where, 3w3kuJFFAMFB4zUR19aTDvbnomepQJFTd60NUCns5HDtqf9mEkv6APFy is the cookie_key in settings.inc.php and samyak02 is the new password I want to set.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''ps_employee' SET 'passwd' = md5(“<3w3kuJFFAMFB4zUR19aTDvbnomepQJFTd60NUCns5HD' at line 1

  • 写回答

4条回答 默认 最新

  • dqp10099 2015-01-20 14:46
    关注

    You need to:

    1. Register a new user/employee
    2. Go to the user table, copy hashed password
    3. Go to employee table, save your hashed password (just in case);
    4. Paste hashed password of newly registered user into your user row (replace your hash)
    5. Since PS uses the same hashing algorithm, this should do the trick.

    Cheers

    评论

报告相同问题?

悬赏问题

  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计