Replace otp respond_to with checking for enc parameter