Code cleanup: remove debug log from AccountController
This commit is contained in:
parent
f5b2015ae0
commit
5897b6bf36
@ -11,7 +11,6 @@ import UserEmail from "./models/UserEmail";
|
|||||||
import MagicLinkController from "./magic_link/MagicLinkController";
|
import MagicLinkController from "./magic_link/MagicLinkController";
|
||||||
import {MailTemplate} from "../mail/Mail";
|
import {MailTemplate} from "../mail/Mail";
|
||||||
import {ADD_EMAIL_MAIL_TEMPLATE} from "../Mails";
|
import {ADD_EMAIL_MAIL_TEMPLATE} from "../Mails";
|
||||||
import {logger} from "../Logger";
|
|
||||||
import AuthMagicLinkActionType from "./magic_link/AuthMagicLinkActionType";
|
import AuthMagicLinkActionType from "./magic_link/AuthMagicLinkActionType";
|
||||||
|
|
||||||
export default class AccountController extends Controller {
|
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 passwordComponent.setPassword(req.body.new_password, 'new_password');
|
||||||
await user.save();
|
await user.save();
|
||||||
logger.debug('user ' + user.id + ' changed their password and was saved.');
|
|
||||||
|
|
||||||
req.flash('success', 'Password changed successfully.');
|
req.flash('success', 'Password changed successfully.');
|
||||||
res.redirectBack(Controller.route('account'));
|
res.redirectBack(Controller.route('account'));
|
||||||
|
Loading…
Reference in New Issue
Block a user