alexaxbreadbytes commited on
Commit
99e05e3
·
1 Parent(s): 686d7cc

Removed login

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -238,27 +238,28 @@ def runapp() -> None:
238
  #st.header("Trading Bot Dashboard :bread: :moneybag:")
239
  #st.write("Welcome to the Trading Bot Dashboard by BreadBytes! You can use this dashboard to track " +
240
  # "the performance of our trading bots, or upload and track your own performance data from a supported exchange.")
241
- if 'auth_user' not in st.session_state:
242
- with st.form("Login"):
243
- user = st.text_input("Username")
244
- secret = st.text_input("Password")
245
-
246
- submitted = st.form_submit_button("Submit")
247
- if submitted:
248
- if user == st.secrets.get("db_username") and secret == st.secrets.get("db_password"):
249
- st.success("Success!")
250
- st.session_state['auth_user'] = True
251
- else:
252
- st.success("Incorrect username and/or password. Please try again.")
253
- st.session_state['auth_user'] = False
254
-
255
- try:
256
- st.session_state['auth_user'] == True
257
- except:
258
- st.error("Please log in.")
259
- return
260
 
261
- if st.session_state['auth_user'] == True:
 
262
  st.sidebar.header("FAQ")
263
 
264
  with st.sidebar.subheader("FAQ"):
@@ -266,7 +267,6 @@ def runapp() -> None:
266
 
267
  no_errors = True
268
 
269
-
270
  exchanges = ["ByBit", "BitGet", "Binance","Kraken","MEXC","OkX", "BreadBytes Historical Logs"]
271
  logtype = st.selectbox("Select your Exchange", options=exchanges)
272
 
 
238
  #st.header("Trading Bot Dashboard :bread: :moneybag:")
239
  #st.write("Welcome to the Trading Bot Dashboard by BreadBytes! You can use this dashboard to track " +
240
  # "the performance of our trading bots, or upload and track your own performance data from a supported exchange.")
241
+ #if 'auth_user' not in st.session_state:
242
+ # with st.form("Login"):
243
+ # user = st.text_input("Username")
244
+ # secret = st.text_input("Password")
245
+
246
+ # submitted = st.form_submit_button("Submit")
247
+ # if submitted:
248
+ # if user == st.secrets.get("db_username") and secret == st.secrets.get("db_password"):
249
+ # st.success("Success!")
250
+ # st.session_state['auth_user'] = True
251
+ # else:
252
+ # st.success("Incorrect username and/or password. Please try again.")
253
+ # st.session_state['auth_user'] = False
254
+
255
+ #try:
256
+ # st.session_state['auth_user'] == True
257
+ #except:
258
+ # st.error("Please log in.")
259
+ # return
260
 
261
+ #if st.session_state['auth_user'] == True:
262
+ if True:
263
  st.sidebar.header("FAQ")
264
 
265
  with st.sidebar.subheader("FAQ"):
 
267
 
268
  no_errors = True
269
 
 
270
  exchanges = ["ByBit", "BitGet", "Binance","Kraken","MEXC","OkX", "BreadBytes Historical Logs"]
271
  logtype = st.selectbox("Select your Exchange", options=exchanges)
272