     disableMFA: ->
       disableMFAOTP = @get "disableMFAOTP"
       that = @
+      for otp in [disableMFAOTP]
+        return @get("notify").error "Enter the six digit OTP" if !isValidOTP otp
       data =
         otp: disableMFAOTP
       @get("ajax").post ENV.endpoints.disableMFA, data: data

`import Ember from 'ember'`
`import ENV from 'irene/config/environment';`

AuthMfaComponent = Ember.Component.extend


    enableMFA: ->
      enableMFAOTP = @get "enableMFAOTP"
      that = @
      for otp in [enableMFAOTP]
        return @get("notify").error "Enter the six digit OTP" if !isValidOTP otp
      data =
        otp: enableMFAOTP
      @get("ajax").post ENV.endpoints.enableMFA, data: data
