mkhorasani / Streamlit-Authenticator

A secure authentication module to manage user access in a Streamlit application.
Other
1.66k stars 258 forks source link

Fix SyntaxError in `authentication_models.py` due to unmatched brackets in f-string #211

Closed HSILA closed 1 month ago

HSILA commented 1 month ago

This PR fixes a SyntaxError caused by unmatched brackets in an f-string within the authentication_model.py file.

Corrected the f-string syntax in authentication_model.py:

# Before
st.session_state['name'] = f'{result['given_name']} {result['family_name']}'

# After
st.session_state['name'] = f"{result['given_name']} {result['family_name']}"

Fixes #210

mkhorasani commented 1 month ago

Hey @HSILA, thank you for bringing this to my attention! I have quickly fixed it and made some minor other changes as well, so while I can't accept this specific pull request, I really appreciate it nonetheless.