blinktrade / bitex

BlinkTrade - Open Source Bitcoin Exchange
GNU General Public License v3.0
428 stars 233 forks source link

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

Open pjz opened 9 years ago

pjz commented 9 years ago

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 commented 9 years ago

take a look at the broker currencies record.

yours should be currencies=USD,BNL

pjz commented 9 years ago

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 commented 9 years ago

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.