     if password isnt passwordConfirm
       return callback createKodingError "Passwords must match!"
 
-    if locationData?
-      try { ip, country, region } = JSON.parse locationData
+    if clientIP
+      { ip, country, region } = Regions.findLocation clientIP
 
     newToken       = null
     invite         = null

jraphical = require 'jraphical'

Flaggable = require '../../traits/flaggable'


      guestsGroup.removeMember account, callback

  @convert = secure (client, userFormData, callback) ->
    { connection, sessionToken : clientId, clientIP } = client
    { delegate : account } = connection
    { nickname : oldUsername } = account.profile
    { username, email, firstName, lastName, agree,
      inviteCode, referrer, password, passwordConfirm } = userFormData

    if not firstName or firstName is "" then firstName = username
    if not lastName then lastName = ""
