From 5897b6bf36713303d01b9a94474e3e59fa8c4ab8 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 24 Jan 2021 16:31:28 +0100 Subject: [PATCH] Code cleanup: remove debug log from AccountController --- src/auth/AccountController.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/auth/AccountController.ts b/src/auth/AccountController.ts index 1a79187..0893ea0 100644 --- a/src/auth/AccountController.ts +++ b/src/auth/AccountController.ts @@ -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'));