diff --git a/llmstack/client/src/components/LoginDialog.jsx b/llmstack/client/src/components/LoginDialog.jsx new file mode 100644 index 00000000000..c10f8c447d9 --- /dev/null +++ b/llmstack/client/src/components/LoginDialog.jsx @@ -0,0 +1,64 @@ +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; 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", "/")