lib/jwt_authenticable/exceptions.rb in researchable_jwt-authenticable-1.0.1 vs lib/jwt_authenticable/exceptions.rb in researchable_jwt-authenticable-1.1.0

- old
+ new

@@ -45,7 +45,14 @@ def message "Authorization error: #{@msg}" end end + + # Exception to raise when 2fa enforce is enabled but user has not enabled 2fa + class TwoFANotEnabledError < StandardError + def message + '2FA must be enabled' + end + end end end