From 9c9b99077dbbe37085fcc67a0144686e59daaa6c Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Wed, 3 Dec 2025 11:24:31 +0000 Subject: [PATCH] CLDC-4060: Reset 2FA when user is deactivated (#3120) 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