我已将此插件https://github.com/RainLoop/rainloop-webmail/tree/master/plugins/change-password-custom-sql安装到rainloop网络邮件中。 我试图让用户可以自己更新密码。 当我部署网络邮件,mysql等时,我遵循了本教程:https://www.cyberpunk.rs/mail-server-setup-postfix
添加用户时我使用:
INSERT INTO `EMAIL_DB`.`virtual_users`
(`id`, `domain_id`, `password` , `email`)
VALUES
('1', '1', ENCRYPT('password for the user', CONCAT('$6$',
SUBSTRING(SHA(RAND()), -16))), 'email@domain.com');
因此,当我尝试配置插件时,将其用作查询:
UPDATE :table SET password = ENCRYPT(':newpass', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))) WHERE email = :email
但是我似乎无法正常工作
UPDATE :table SET password = ENCRYPT(':newpass', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))) WHERE email = :email
除了无法更新密码外,我没有收到其他错误消息...
答案 0 :(得分:0)
UPDATE :table SET password = ENCRYPT(':newpass', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))) WHERE email = ':email'
...我很想念:email:sigh:周围的''