这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ def main_page():
dump_dict_to_yaml(config, "credentials.yml")
with st.sidebar:
st.write(f'Welcome {st.session_state["name"]}!')
st.session_state.authenticator.logout('Logout', 'sidebar')
st.session_state.authenticator.logout(location='sidebar') # Updated logout call
main_page()
else:
show_pages([
Page("main.py", "Hummingbot Dashboard", "📊"),
])
name, authentication_status, username = st.session_state.authenticator.login('Login', 'main')
name, authentication_status, username = st.session_state.authenticator.login(location='main') # Updated login call
if st.session_state["authentication_status"] == False:
st.error('Username/password is incorrect')
elif st.session_state["authentication_status"] == None:
st.warning('Please enter your username and password')
st.write("---")
st.write("If you are pre-authorized, you can login with your pre-authorized mail!")
st.session_state.authenticator.register_user('Register', 'main')
st.session_state.authenticator.register_user(location='main') # Updated register user call