Ronio Jerico Roque
Update login redirection to agent_6 page
8811d54
raw
history blame contribute delete
718 Bytes
import streamlit as st
import os
from dotenv import load_dotenv
# Create an empty container
placeholder = st.empty()
load_dotenv()
actual_email = os.getenv('email')
actual_password = os.getenv('password')
# Insert a form in the container
with placeholder.form("login"):
st.markdown("#### Digital Footprint AI Team")
email = st.text_input("Email")
password = st.text_input("Password", type="password")
submit = st.form_submit_button("Login")
if submit and email == actual_email and password == actual_password:
st.switch_page("pages/agent_6.py")
st.success("Login successful")
elif submit and email != actual_email and password != actual_password:
st.error("Login failed")
else:
pass