Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Hosting offline version - requires login & fails #14

Open
remy opened this issue Mar 20, 2011 · 4 comments
Open

Hosting offline version - requires login & fails #14

remy opened this issue Mar 20, 2011 · 4 comments

Comments

@remy
Copy link

remy commented Mar 20, 2011

When I'm running this locally, when I try to save it asks for a login. At which point I can't create a new user or login (not that I've set any user details).

When I try to create new user, it redirects to localhost:8080/newUser - which is the result of static/newUserName.html - which then keeps redirecting on submit without any notice of what it's doing. I tried logging in with the credentials I gave the "newUser" page, but those fail too.

Any pointers?

@matthewfl
Copy link
Owner

I do not quite understand what you mean by it asking for a login when you try to save, as this is expected.

As for not being able to login with the new login you are making. It is attempting to redirect to the home page, or to the "username all ready taken" page.

I would check the database to make sure that your login info is there as it should be. It should be contained in a login_username key, and the value will be a hash of your password.

@remy
Copy link
Author

remy commented Mar 21, 2011

Sorry, I didn't mean that it was unexpected that I needed to login - only that registering and trying to login would fail consistently.

I couldn't find any directions on the database or login_username. I've just started poking around the config.js and changing some of the properties there. I've also found a file called database.db - which is consistently empty.

No matter what I put in the lightbox when registering a new user, it always redirects me to the /newUser page.

@rafaelcastrocouto
Copy link

I'm also stuck at this point. I'm guessing tyrant is the default DB but how am I suppose to check it out?
Since remy comment is one year old, seems like matthewfl is out of time.
I really like node-host and I'm willing to help develop it, please don't let this project die.

@matthewfl
Copy link
Owner

My issue is that I have never been able to replicate this issue and can only assume that it is an issue with configuration of tyrant or node-host (of which I am not sure).

The only thing that I can think of is that you might not have properly linked the db.tyrant.js file to db.js, but not doing so should cause an error with node and be unable to start. However on that node, you could link the db.nstore.js file rather than the db.tyrant.js and you should be able to use nstore, but I don't guarantee the stability of that or that you will even have better luck than with tyrant.

Additionally as you have guess I am "out of time"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants