         res.kodingUser = if count is 1 then yes else no
         res.forbidden = if username in @bannedUserList then yes else no
         callback null, res
+
+  confirmEmail:(callback)->
+    @update {$set:email:'confirmed'}, callback
 
   fetchContextualAccount:(context, rest..., callback)->
     # Relationship.one {

          @fetchUser client, (err,user)->
            account = client.connection.delegate
            user.changeEmail account, options, callback
            email = new JMail {
              email: user.email
              subject : "Your email has changed"
              content : """
      Your email has been changed!  If you didn't request this change, please contact support@koding.com immediately!
      """
            }
            email.save()

  @emailAvailable = (email, callback)->
    @count {email}, (err, count)->

          return callback err  if err?
          queue.next()
      =>
        JPasswordRecovery = require '../passwordrecovery'
        JPasswordRecovery.create client, {email}, (err)->
          queue.next()
      ->
        JAccount.emit "AccountRegistered", account, referrer
