Subj : Re: JSON database
To : Kirkman
From : echicken
Date : Tue Sep 30 2014 03:53 pm
Re: Re: JSON database
By: Kirkman to echicken on Tue Sep 30 2014 14:26:09
Ki> "!JavaScript : uncaught exception: User not found: [object Object]"
Ki> var user = '[removed]';
Ki> var pass = '[removed]';
Just to be sure, your actual username & password aren't wrapped in [], are
they? If they are, the JSON service may be treating them as arrays and failing
to find a match.
Ki> db.ident('ADMIN',user,pass);
I've never had any problems with this, when 'user' and 'pass' are the valid
username & password for an account on my BBS. Out of laziness I have done this
in the past:
var u = new User(1);
db.ident('ADMIN', u.alias, u.security.password);
Which idents as the sysop account, and saves me needing to update scripts if I
change my password.