From bae3e9641d5de4504e84db3bcd8e77ea0ad2b12f Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Tue, 4 Nov 2025 14:23:13 +0000 Subject: [PATCH] CLDC-4060: Reset 2FA when user is deactivated allows CORE to always reset a user by deactivating/reactivating them --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index 23dbc196b..10638efce 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -160,6 +160,7 @@ class User < ApplicationRecord initial_confirmation_sent: false, reactivate_with_organisation:, unconfirmed_email: nil, + second_factor_attempts_count: 0, ) end