From 95fe69d363e6a13fca22db4abae9ac3ca66836dc Mon Sep 17 00:00:00 2001 From: rapcmia <73840223+rapcmia@users.noreply.github.com> Date: Thu, 14 Dec 2023 19:07:48 +0800 Subject: [PATCH 1/2] Update INSTALLATION.md on hash generate --- INSTALLATION.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 0917d9c4..27ea422d 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -47,8 +47,8 @@ streamlit run main.py ``` import streamlit_authenticator as st_auth - hashed_password = st_auth.hasher_generate("YOUR_PLAIN_TEXT_PASSWORD") - + hashed_password = st_auth.Hasher("YOUR_PLAIN_TEXT_PASSWORD").generate()[0] + print(hashed_password) ``` 3 - Edit the Credentials YAML File From e29693e06064108a735af283df21e7ed7e319b81 Mon Sep 17 00:00:00 2001 From: david-hummingbot <85695272+david-hummingbot@users.noreply.github.com> Date: Thu, 14 Dec 2023 20:23:02 +0800 Subject: [PATCH 2/2] add instructions to enable authentication --- INSTALLATION.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/INSTALLATION.md b/INSTALLATION.md index 27ea422d..9f2c6231 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -33,6 +33,14 @@ conda activate dashboard ```bash streamlit run main.py ``` +## Enable Authentication + +1 - Locate the `config.py` file in the /dashboard folder + +2 - Open the file using a text editor + +3 - Modify the `AUTH_SYSTEM_ENABLED` variable and set this to `True` to enable. By default this is set to `False` + ## Configure Credentials for Authentication ### Method 1: Using hasher_generate