Hu-Fi / Mr.Market

Mr. Market is the exchange oracle of HuFi, and a CeFi crypto bot on Mixin Messenger
https://mr-market-one.vercel.app
GNU Affero General Public License v3.0
1 stars 6 forks source link

Create an admin view #8

Closed posix4e closed 6 months ago

posix4e commented 6 months ago

We should create an admin only view. It can be password protected. The password can be set an envvar when we start the node server. It can also be printed out when run, if it's not set. In the admin view It should

zed-wong commented 6 months ago

Should we use mixin oauth for the admin page? we can hard code user id and login via oauth

zed-wong commented 6 months ago

By doing so, we can even add an entrance inside user settings of the mr.market app.

posix4e commented 6 months ago

The password should either be set by envvar, or printed out to console log on startup to the backend server

zed-wong commented 6 months ago

OK, will use this method

zed-wong commented 6 months ago

Admin page: