mirror of
https://github.com/strapi/strapi.git
synced 2025-12-03 02:23:44 +00:00
Fix get email settings reset password
This commit is contained in:
parent
957e7a08cb
commit
c52fe7165b
@ -172,7 +172,11 @@ module.exports = {
|
||||
// Set the property code.
|
||||
user.resetPasswordToken = resetPasswordToken;
|
||||
|
||||
const settings = strapi.plugins['users-permissions'].config.email['reset_password'].options;
|
||||
const settings = (await strapi.store({
|
||||
environment: '',
|
||||
type: 'plugin',
|
||||
name: 'users-permissions'
|
||||
}).get({ key: 'email' }))['reset_password'].options;
|
||||
|
||||
settings.message = await strapi.plugins['users-permissions'].services.userspermissions.template(settings.message, {
|
||||
URL: url,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user