From b89e31361ca4d140744531faa897070f6ec2ab34 Mon Sep 17 00:00:00 2001 From: Vignesh Aigal Date: Wed, 28 Feb 2024 22:21:34 -0800 Subject: [PATCH 1/3] Add Login Dialog --- .../client/src/components/LoginDialog.jsx | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 llmstack/client/src/components/LoginDialog.jsx diff --git a/llmstack/client/src/components/LoginDialog.jsx b/llmstack/client/src/components/LoginDialog.jsx new file mode 100644 index 00000000000..485aea849c1 --- /dev/null +++ b/llmstack/client/src/components/LoginDialog.jsx @@ -0,0 +1,62 @@ +import { + Typography, + Button, + Dialog, + DialogContent, + DialogContentText, + DialogTitle, + Link, + Stack, +} from "@mui/material"; + +function LoginDialog({ open, handleClose, redirectPath }) { + return ( + + + Sign in to continue + + + + + + Access 100+ community applications for free. Use ChatGPT, GPT-4, + Claude 2, DALLE 3, and others - all on Promptly. + + + + + + + + By continuing, you agree to our{" "} + + Terms of Service + {" "} + and{" "} + + Privacy Policy + + + + + + + ); +} + +export default LoginDialog; From 97498f376fd6837db88a8693025b8439246690d8 Mon Sep 17 00:00:00 2001 From: Vignesh Aigal Date: Wed, 28 Feb 2024 23:54:53 -0800 Subject: [PATCH 2/3] Update the loginmodal --- llmstack/client/src/components/LoginDialog.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llmstack/client/src/components/LoginDialog.jsx b/llmstack/client/src/components/LoginDialog.jsx index 485aea849c1..c10f8c447d9 100644 --- a/llmstack/client/src/components/LoginDialog.jsx +++ b/llmstack/client/src/components/LoginDialog.jsx @@ -34,11 +34,13 @@ function LoginDialog({ open, handleClose, redirectPath }) { From cf8068f1fe602007684af8762ec6cd2a575eb8c5 Mon Sep 17 00:00:00 2001 From: Vignesh Aigal Date: Thu, 29 Feb 2024 00:08:55 -0800 Subject: [PATCH 3/3] . --- llmstack/server/adapters.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llmstack/server/adapters.py b/llmstack/server/adapters.py index b1750fcd8d1..316880a86c0 100644 --- a/llmstack/server/adapters.py +++ b/llmstack/server/adapters.py @@ -50,7 +50,3 @@ def populate_user(self, request, sociallogin, data): user.email = user.username return user - - def get_connect_redirect_url(self, request, socialaccount): - logger.debug(f"get_connect_redirect_url: params: {request.GET}") - return request.GET.get("redirectUrl", "/")