New Library: streamlit-login-auth-ui, connect your streamlit application to a pre-built and secure Login/ Sign-Up page

Hey @Liscivia , Thank You so much for the appreciation. I agree with you. Could you please share screenshots as well? So, that it is easier for everyone to understand and contribute? Thank You so much.

1 Like

Sure!


As you can see I’ve got two diffeent pages with two different layouts set in the configurations of the page.
The only difference between the ‘Net Liquidity’ and ‘Home’ page is that the first one is set to wide, the other one to centered, the login prompt shows up differently in the two pages!

Thank you :slight_smile:

Another doubt that I have is in regards of the _secret_auth_.json file where the credentials are stored, I guess that one should be hidded when the app gets deployed, isn’t it?
I’ve placed it into my .gitignore file but now the app doesn’t read the credentials, is there a way to reference it with st.secrets to be able to deploy safely?

I fixed this by implementing this:

if LOGGED_IN != True:
    with open('style1 or style 2.css') as f:
        st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)

style1.css:

.css-1bzkvni {
    display: none;
}

style2.css :

.css-18e3th9 {
    max-width: 46em !important;
    padding-left: 1em !important;
    padding-right: 1em !important 
}
.css-1bzkvni {
    display: none;
}

On centered layout I used style 1, on wide I used style 2.
:slight_smile:

how to disable registered user after some days of condition??