Update services/auth.py
Browse files- services/auth.py +2 -1
services/auth.py
CHANGED
@@ -26,7 +26,8 @@ def init_auth():
|
|
26 |
authenticator = init_auth()
|
27 |
|
28 |
def require_login():
|
29 |
-
|
|
|
30 |
if not authentication_status:
|
31 |
st.stop()
|
32 |
return username
|
|
|
26 |
authenticator = init_auth()
|
27 |
|
28 |
def require_login():
|
29 |
+
# Only specify location now
|
30 |
+
name, authentication_status, username = authenticator.login(location="sidebar")
|
31 |
if not authentication_status:
|
32 |
st.stop()
|
33 |
return username
|