recipes_app / pages /3_Profile.py
adrianpierce's picture
Update pages/3_Profile.py
cdd120d
raw
history blame contribute delete
347 Bytes
import streamlit as st
st.title("Profile")
admin_pass = st.text_input("Admin Access", value="", type="password")
if admin_pass != "":
if admin_pass == st.secrets["admin_pass"]:
st.success("Admin Access Granted")
st.session_state.admin = True
else:
st.error("Wrong Password")
st.session_state.admin = False