Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep getting signed out... just for using the UI #25

Open
pjz opened this issue May 7, 2015 · 3 comments
Open

Keep getting signed out... just for using the UI #25

pjz opened this issue May 7, 2015 · 3 comments

Comments

@pjz
Copy link
Contributor

pjz commented May 7, 2015

I'm in the process of trying to figure out how to adapt bitex to handle trading pure equities. To start I added (to config/bootstrap/demo.ini):

under [currencies]:

BNL=[ "BNL" , "B"  , "Buy'N'Large" ,  true,  1,    "{:,.0f}",     "B #,##0.00000000;(B #,##0.00000000)" ,  {:,.0f}",           "B #,##0.00000000;(B #,##0.0000000)"          ]

and under [instruments]:

BNLUSD=["BNLUSD", "USD", "Buy 'N Large instrument"]  

...with my thinking being that it might be okay to just set up a fake currency that can't be traded and is, essentially, 'shares of BNL' that happen to be purchased using BNLUSD. Sadly, doing this causes the frontend to... misbehave. Trying to change the Market dropdown in the sidebar from BTC / USD to 'Buy 'N Large instrument' causes a logout. As does just trying to go to the ledger.

Hints? help? What did I overlook?

@pinhopro
Copy link
Member

pinhopro commented May 7, 2015

take a look at the broker currencies record.

yours should be
currencies=USD,BNL

@pjz
Copy link
Contributor Author

pjz commented May 8, 2015

While that does end up getting BNL listed in the side bar, clicking 'Ledger' still results in being logged out - though this time, it then attempts to re-log-in from the #start page, which either: 1) fails if you're trying to log in as the admin, so you get the 'bad username or password' popup or 2) works if you're logging in as a user...but then you end up on the 'Order Book' page again.

@pjz
Copy link
Contributor Author

pjz commented May 15, 2015

Okay, so now I've tried backing out all those changes... and I'm still getting signed out in the same way. I've nuked the sqlite databases and rebuilt them using the basic demo.ini, but I still get kicked back to the main login screen if I try and navigate to any other 'page' than the basic Order Book.

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

No branches or pull requests

2 participants