           developerEmail
           code
           userMobileNumber
-        }).update({used: true})
+        }).update({used: true, usedIp: ip})
       catch
         # Just log this; we still want to say the code is valid
         console.error "Failed to mark code '#{ code }' for mobile number #{ userMobileNumber } for developer '#{ developerEmail }' as used"

        message
        userMobileNumber
        numberOfDigits
      }

      res.send {

    message
    code
    sentTime
    ip
  })

  message ?= "Code:"
