     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

    disableMFA: ->
      disableMFAOTP = @get "disableMFAOTP"
      that = @
      data =
        otp: disableMFAOTP
      @get("ajax").post ENV.endpoints.disableMFA, data: data

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

isValidOTP = (otp)->
  return otp.length > 5

AuthMfaComponent = Ember.Component.extend

