我已经安装了这个插件:https://github.com/RainLoop/rainloop-webmail/tree/master/plugins/change-password-custom-sql到rainloop webmail中。我试图让用户自己更新密码。当我部署 webmail、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
除了无法更新密码外,我没有收到其他错误消息...