           else
             @fetchUser client, (err, user) =>
               return callback new KodingError err.message  if err
-              @persistOauthInfo user.username, sessionToken, kallback
+              JForeignAuth.persistOauthInfo {
+                username: user.username
+                group: session.group
+                sessionToken
+              }, kallback
+              # user.username, sessionToken, kallback
+
         else
           if user
             afterLogin user, sessionToken, session, kallback
           else
-            return callback new KodingError 'Koding Solo registrations are closed!'
+            callback new KodingError '''
+              Login with username and password to enable this integration
+            '''
 
 
   @validateAll = (userFormData, callback) ->

          returnUrl
        }

      @fetchUserByProvider provider, session, (err, user) =>

        return callback new KodingError err.message  if err

        if isUserLoggedIn
          if user and user.username isnt client.connection.delegate.profile.nickname
            JSession.clearOauthInfo session, ->
              callback new KodingError '''
                Account is already linked with another user.


  ###*
   * Verify if `response` from client is valid by asking recaptcha servers.
   *
   * @param {string}   response
   * @param {function} callback
  ###
  @verifyRecaptcha = (response, params, callback) ->

    { url, secret } = KONFIG.recaptcha
    { slug }        = params

    # TODO: temporarily disable recaptcha for groups
    if slug? and slug isnt 'koding'
