diff --git a/INSTALLATION.md b/INSTALLATION.md index 0917d9c4..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 @@ -47,8 +55,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