   isString
 } = require 'lodash-node'
 timeconstants = require 'timeconstants'
+util = require 'util'
 
 r = require './r'
 secret = require './secret'


# This doesn't really validate e-mails but is a basic sanity check
EMAIL_REGEX = /.+\@.+\..+/

app = express()


  message ?= "Code:"

  if contains message, CUSTOM_MESSAGE_CODE_ESCAPE
    messageToSend = message.replace CUSTOM_MESSAGE_REGEX, code
  else
    messageToSend = "#{ message } #{ code }"

