Update comment on reset password

This commit is contained in:
Jim Laurie 2018-06-14 17:20:45 +02:00
parent ad815eae20
commit 1c3e6a4664

View File

@ -114,7 +114,7 @@ module.exports = {
user.password = await strapi.plugins['users-permissions'].services.user.hashPassword(params);
// Remove relations data to update user code.
// Remove relations data to update user password.
const data = _.omit(user, strapi.plugins['users-permissions'].models.user.associations.map(ast => ast.alias));
// Update the user.