From fb84c78544afcd820329dcd3caee26ba3561fb7c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 27 Jan 2021 16:21:53 -0500 Subject: [PATCH] chore: remove deprecated `User.emailConfirm` [breaking] Use `User.email.confirmByCode` instead. --- src/user/email.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/user/email.js b/src/user/email.js index 08aa37a347..887a1afd76 100644 --- a/src/user/email.js +++ b/src/user/email.js @@ -2,7 +2,6 @@ 'use strict'; const nconf = require('nconf'); -const winston = require('winston'); const user = require('./index'); const utils = require('../utils'); @@ -88,12 +87,6 @@ UserEmail.sendValidationEmail = async function (uid, options) { return confirm_code; }; -UserEmail.confirm = async function (code) { - // TODO: remove in 1.17.0 - winston.warn('[deprecated] User.email.confirm deprecated use User.email.confirmByCode'); - await UserEmail.confirmByCode(code); -}; - // confirm email by code sent by confirmation email UserEmail.confirmByCode = async function (code) { const confirmObj = await db.getObject('confirm:' + code);