two_factor_configuration.rb 273 B

123456789
  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] != 'password'
  5. user.two_factor_setup_required?
  6. end
  7. end