Skip to content

Commit

Permalink
delete unnecessary key (#4045)
Browse files Browse the repository at this point in the history
* delete unnecessary key

* Add note
  • Loading branch information
mei23 authored and syuilo committed Jan 30, 2019
1 parent 00b134c commit 79b0cc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79b0cc6

Please sign in to comment.