Skip to content

Commit

Permalink
Merge pull request #191 from DocShow-AI/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
liberty-rising authored Jan 14, 2024
2 parents cd3d2a3 + f54d28d commit 502a9d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/utils/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ async def send_verification_email_with_sendgrid(email: List[str], token: str):
html_content=f'Click on the link to verify your email: <a href="https://{APP_HOST}/verify-email?token={token}">https://{APP_HOST}/verify-email</a>',
)
# Disable click tracking in development
if APP_ENV == "dev":
message.tracking_settings = TrackingSettings()
message.tracking_settings.click_tracking = ClickTracking(False, False)
# if APP_ENV == "dev":
message.tracking_settings = TrackingSettings()
message.tracking_settings.click_tracking = ClickTracking(False, False)
try:
sg = SendGridAPIClient(SENDGRID_API_KEY)
response = await sg.send(message)
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/pages/register/RegisterPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { API_URL } from '../../utils/constants';
function RegisterPage() {
const [errorMessage, setErrorMessage] = useState('');
const navigate = useNavigate();
const { updateAuth } = useAuth();

const handleSubmit = async (username, email, password, subscribe, marketingContent) => {
try {
Expand All @@ -22,6 +23,7 @@ function RegisterPage() {
});

if (response.data.message === 'Registration successful') {
updateAuth(true);
// Call the send-verification-email endpoint
await axios.post(`${API_URL}users/send-verification-email/`, {
email,
Expand Down

0 comments on commit 502a9d1

Please sign in to comment.