mirror of https://github.com/apache/cloudstack.git
Fix user password reset mail template value (#12882)
* Fix default user password reset email template * improve readabilty * change update query * Specify database for update * Fix SQL statement * Use CONCAT_WS sql method to create multiline string --------- Co-authored-by: GaOrtiga <49285692+GaOrtiga@users.noreply.github.com> Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
This commit is contained in:
parent
0c86899cc1
commit
5013cf2af6
|
|
@ -53,3 +53,10 @@ DELETE FROM `cloud`.`configuration` WHERE name = 'consoleproxy.cmd.port';
|
|||
|
||||
-- Drops the unused "backup_interval_type" column of the "cloud.backups" table
|
||||
ALTER TABLE `cloud`.`backups` DROP COLUMN `backup_interval_type`;
|
||||
|
||||
-- Update `user.password.reset.mail.template` configuration value to match new logic
|
||||
UPDATE `cloud`.`configuration`
|
||||
SET value = CONCAT_WS('\n', 'Hello {{username}}!', 'You have requested to reset your password. Please click the following link to reset your password:', '{{{resetLink}}}', 'If you did not request a password reset, please ignore this email.', '', 'Regards,', 'The CloudStack Team')
|
||||
WHERE name = 'user.password.reset.mail.template'
|
||||
AND value IN (CONCAT_WS('\n', 'Hello {{username}}!', 'You have requested to reset your password. Please click the following link to reset your password:', 'http://{{{resetLink}}}', 'If you did not request a password reset, please ignore this email.', '', 'Regards,', 'The CloudStack Team'), CONCAT_WS('\n', 'Hello {{username}}!', 'You have requested to reset your password. Please click the following link to reset your password:', '{{{domainUrl}}}{{{resetLink}}}', 'If you did not request a password reset, please ignore this email.', '', 'Regards,', 'The CloudStack Team'));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue