daniel-was-taken commited on
Commit
cc46be2
·
1 Parent(s): 36b893f

Change app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -178,7 +178,7 @@ Please provide a clear response using the above context"""
178
  # Authentication
179
  @cl.password_auth_callback
180
  def auth(username: str, password: str) -> Optional[cl.User]:
181
- if (username, password) == ("admin", SecretStr(os.getenv("PASSWORD"))):
182
  return cl.User(
183
  identifier="admin",
184
  metadata={"role": "admin", "provider": "credentials"},
 
178
  # Authentication
179
  @cl.password_auth_callback
180
  def auth(username: str, password: str) -> Optional[cl.User]:
181
+ if (username, password) == ("admin", os.getenv("PASSWORD")):
182
  return cl.User(
183
  identifier="admin",
184
  metadata={"role": "admin", "provider": "credentials"},