mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Remove log and fix email reset password 404
This commit is contained in:
parent
b195ae0ef8
commit
74164aa38a
File diff suppressed because one or more lines are too long
@ -17,7 +17,7 @@ module.exports = {
|
||||
try {
|
||||
// Default values.
|
||||
options = _.isObject(options) ? options : {};
|
||||
options.from = 'admin@strapiapp.com';
|
||||
options.from = 'admin-dashboard@your-strapi-app.com';
|
||||
options.text = options.text || options.html;
|
||||
options.html = options.html || options.text;
|
||||
|
||||
|
||||
@ -133,7 +133,7 @@ module.exports = {
|
||||
html: url + '?code=' + resetPasswordToken
|
||||
});
|
||||
|
||||
ctx.send();
|
||||
ctx.send({ ok: true });
|
||||
},
|
||||
|
||||
changePassword: async (ctx) => {
|
||||
|
||||
@ -48,7 +48,6 @@ module.exports = {
|
||||
},
|
||||
|
||||
getActions: () => {
|
||||
console.log(strapi);
|
||||
const generateActions = (data) => (
|
||||
Object.keys(data).reduce((acc, key) => {
|
||||
acc[key] = { enabled: false, policy: '' };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user