two_factor_configuration.rb 334 B

12345678910
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Auth::AfterAuth::TwoFactorConfiguration < Auth::AfterAuth::Backend
  3. def check
  4. return false if session[:authentication_type].blank?
  5. return false if !session[:authentication_type].eql?('password')
  6. user.two_factor_setup_required?
  7. end
  8. end