Giter VIP home page Giter VIP logo

Comments (4)

derWhity avatar derWhity commented on July 18, 2024

Moin,

sorry for the late response, I've been quite busy here.
Passing false to the callback function should work perfectly, since the response to ejabberd is derived from checking your return value against true:

var data = result === true ? 0x1 : 0x0;

So passing anything else than true should yield to return 0x0 (aka "false") to the ejabberd server.
My own project uses true and false just fine, without the process terminating itself.

What does your log say when a failed auth terminates the process? Maybe this could help us find a clue to this unexpected behaviour.

from node-ejabberd-auth.

sinclairzx81 avatar sinclairzx81 commented on July 18, 2024

Hey mate,

we managed to trace the problem it back to the winston logging module. Removing the logging being done seemed to fix things up.

Many thanks

from node-ejabberd-auth.

derWhity avatar derWhity commented on July 18, 2024

Hi,

I think your problem here was that you did not configure a log file to use for winston (not to blame you - it's not documented by now), so winston crashed your node process. The update I just pushed should address this problem by disabling file logging altogether when no log configuration is given.

from node-ejabberd-auth.

sinclairzx81 avatar sinclairzx81 commented on July 18, 2024

Nice one, thank you mate :)

from node-ejabberd-auth.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.