From 79b0cc67853e24f5d2ad03955a885462ea3902d6 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Wed, 30 Jan 2019 21:31:45 +0900 Subject: [PATCH] delete unnecessary key (#4045) * delete unnecessary key * Add note --- src/models/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/user.ts b/src/models/user.ts index df0e3c22a..ab45efc98 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -311,6 +311,7 @@ export const pack = ( delete _user.password; delete _user.token; delete _user.twoFactorTempSecret; + delete _user.two_factor_temp_secret; // 後方互換性のため delete _user.twoFactorSecret; if (_user.twitter) { delete _user.twitter.accessToken;