Skip to content

Commit

Permalink
fix: return types
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwooders committed Aug 26, 2024
1 parent c906b4d commit 8b5da81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions memgpt/server/rest_api/auth/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ def authenticate_user(request: AuthRequest) -> AuthResponse:
is_admin = False
if request.password != password:
user_id = server.api_key_to_user(api_key=request.password)
return user_id
else:
is_admin = True
user_id = server.authenticate_user()
return None
return AuthResponse(user_id=user_id, is_admin=is_admin)

return router

0 comments on commit 8b5da81

Please sign in to comment.