From 538035d46163f884997c24be16e6c7d56eb853c1 Mon Sep 17 00:00:00 2001 From: JG Date: Fri, 20 May 2022 06:35:19 +0100 Subject: [PATCH] code for user being in dev env not being asked for 2fa --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index 364b85351..4c0710555 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -90,6 +90,7 @@ class User < ApplicationRecord end def need_two_factor_authentication?(_request) + return false if Rails.env.development? support? end