app/lib/multifactor_authenticator.rb
# Create a TOTP for this educator
Create a TOTP for this educator
Create a TOTP for this educator
def create_totp!
    rotp_secret = validated_rotp_secret_for_educator!
    rotp_config = validated_rotp_config!(ENV)
    issuer = [rotp_config['issuer_base'], PerDistrict.new.district_key].join('-')
    ROTP::TOTP.new(rotp_secret, issuer: issuer)
  end
def create_totp! rotp_secret = validated_rotp_secret_for_educator! rotp_config = validated_rotp_config! ( ENV ) issuer = [ rotp_config [ 'issuer_base' ] , PerDistrict . new . district_key ] . join ( '-' ) ROTP :: TOTP . new ( rotp_secret , issuer : issuer ) end
Create a TOTP for this educator
Create a TOTP for this educator