Code cleanup: remove debug log from AccountController

This commit is contained in:
Alice Gaudon 2021-01-24 16:31:28 +01:00
parent f5b2015ae0
commit 5897b6bf36

View File

@ -11,7 +11,6 @@ import UserEmail from "./models/UserEmail";
import MagicLinkController from "./magic_link/MagicLinkController";
import {MailTemplate} from "../mail/Mail";
import {ADD_EMAIL_MAIL_TEMPLATE} from "../Mails";
import {logger} from "../Logger";
import AuthMagicLinkActionType from "./magic_link/AuthMagicLinkActionType";
export default class AccountController extends Controller {
@ -65,7 +64,6 @@ export default class AccountController extends Controller {
await passwordComponent.setPassword(req.body.new_password, 'new_password');
await user.save();
logger.debug('user ' + user.id + ' changed their password and was saved.');
req.flash('success', 'Password changed successfully.');
res.redirectBack(Controller.route('account'));