Error when logging in
-
Hi!
I have installed NodeBB according to the guide and all seems to work well except that when I log in it states "Failed login attempt, please try again." even though I have entered correct credentials and if I refresh the page I am logged in. I have not yet begun to debug this, I wanted to hear here first if anyone else has had this issue occur.
Thanks for a great BB, it's looking really promising and I hope this will get the attention it deserves.
-
-
This problem is still happening for me with v. 0.2.0. I've tried a clean install and still not working.
You can see this video for an example: http://www.youtube.com/watch?v=0NxhhyEWQmA
I'm using Node 0.10.22 on a raspberry pi with raspbian.Please guide me on how to debug this.
-
-
Can you make sure your cache is cleared and try again? If it is still not working then try adding a
console.log(data, textStatus);
at https://github.com/designcreateplay/NodeBB/blob/master/public/src/forum/login.js#L39 and see what it says. -
It says:
abort: function (statusText) {
always: function () {
complete: function () {
done: function () {
error: function () {
fail: function () {
arguments: null
caller: null
length: 0
name: ""
prototype: Object
proto: function Empty() {}
<function scope>
getAllResponseHeaders: function () {
getResponseHeader: function (key) {
overrideMimeType: function (type) {
pipe: function ( /* fnDone, fnFail, fnProgress / ) {
progress: function () {
promise: function (obj) {
readyState: 0
responseJSON: undefined
setRequestHeader: function (name, value) {
state: function () {
status: 0
statusCode: function (map) {
statusText: "timeout"
success: function () {
then: function ( / fnDone, fnFail, fnProgress */ ) {
proto: Object -
Ok, I found what the problem is. It's the timeout on the AJAX call that is too low because on the raspberry pi the bcrypt.compare takes about 2 seconds to execute.
Change https://github.com/designcreateplay/NodeBB/blob/master/public/src/forum/login.js#L44 from 2000 to 5000 and it works. This could obviously be handled in a better way but that is atleast a working workaround.
-
got "similar problem" with mongodb...
first.. when i try to setup a admin user.. i got the error
/home/forum/nodebb/node_modules/mongodb/lib/mongodb/connection/base.js:242
throw message;
^
ReferenceError: templates is not definedbut the is created... then when i try to login...
fail attempt to login
... and the nodebb crash with the error/home/forum/nodebb/node_modules/mongodb/lib/mongodb/connection/base.js:242
throw message;
^
Error: data and hash arguments required -
Hmm it worked out.. thks