superfeedr/xmpp-server — pull request #12 by srajbr (2014-06-05 14:57:04+00:00)
Title: User authentication

Authentication mechanism requires two parameter err and user - https://github.com/node-xmpp/node-xmpp-server/blob/master/lib/authentication/mechanism.js
When err is null user must not be null for successful authentication.