소스 검색

Strip username to prevent space errors

lanfr144 2 주 전
부모
커밋
4f7322e4da
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -242,7 +242,7 @@ with st.sidebar:
     else:
     else:
         tab1, tab2, tab3 = st.tabs(["Login", "Register", "Reset"])
         tab1, tab2, tab3 = st.tabs(["Login", "Register", "Reset"])
         with tab1:
         with tab1:
-            l_user = st.text_input("Username", key="l_user")
+            l_user = st.text_input("Username", key="l_user").strip()
             l_pass = st.text_input("Password", type="password", key="l_pass")
             l_pass = st.text_input("Password", type="password", key="l_pass")
             if st.button("Login"):
             if st.button("Login"):
                 if verify_login(l_user, l_pass):
                 if verify_login(l_user, l_pass):