feat: 2FAのバックアップコードの実装 (#121)
This commit is contained in:
		| @@ -455,6 +455,7 @@ export class UserEntityService implements OnModuleInit { | ||||
| 				preventAiLearning: profile!.preventAiLearning, | ||||
| 				isExplorable: user.isExplorable, | ||||
| 				isDeleted: user.isDeleted, | ||||
| 				twoFactorBackupCodes: profile?.twoFactorBackupSecret?.length === 20 ? 'full' : (profile?.twoFactorBackupSecret?.length ?? 0) > 0 ? 'partial' : 'none', | ||||
| 				hideOnlineStatus: user.hideOnlineStatus, | ||||
| 				hasUnreadSpecifiedNotes: this.noteUnreadsRepository.count({ | ||||
| 					where: { userId: user.id, isSpecified: true }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 まっちゃとーにゅ
					まっちゃとーにゅ