Comments (4)
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.
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.
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.
Nice one, thank you mate :)
from node-ejabberd-auth.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ejabberd-auth.