Skip to content

Commit

Permalink
updated the frontend production url in the server
Browse files Browse the repository at this point in the history
  • Loading branch information
Fareed95 committed Nov 19, 2024
1 parent eda0652 commit 632b669
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Footer() {
<AnimatedTooltip items={people} />
</div>
<p>
<strong>Email:</strong> [email protected]
<strong>Email:</strong> [email protected]
</p>
<p>
<strong>Address:</strong> Rizvi Educational Complex Off Carter Road, Sherly Rajan Rd, Bandra West, Mumbai, Maharashtra 400050
Expand Down
2 changes: 1 addition & 1 deletion server/api/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create(self, validated_data):
send_mail(
'Your OTP Code',
plain_message,
'[email protected]', # Replace with your email
'[email protected]', # Replace with your email
[validated_data['email']],
fail_silently=False,
html_message=html_message,
Expand Down
8 changes: 4 additions & 4 deletions server/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def put(self, request):
send_mail(
f'Welcome {user.name},',
plain_message,
'[email protected]', # Replace with your email
'[email protected]', # Replace with your email
[user.email],
fail_silently=False,
html_message=html_message,
Expand Down Expand Up @@ -123,7 +123,7 @@ def post(self, request):
send_mail(
f'Password reset request',
plain_message,
'[email protected]', # Replace with your email
'[email protected]', # Replace with your email
[email],
fail_silently=False,
html_message=html_message,
Expand Down Expand Up @@ -154,7 +154,7 @@ def post(self, request):
send_mail(
f'Password reset succesfully',
plain_message,
'[email protected]', # Replace with your email
'[email protected]', # Replace with your email
[email],
fail_silently=False,
html_message=html_message,
Expand Down Expand Up @@ -190,7 +190,7 @@ def post(self, request):
send_mail(
f'Welcome {user.name},',
plain_message,
'[email protected]', # Replace with your email
'[email protected]', # Replace with your email
[user.email],
fail_silently=False,
html_message=html_message,
Expand Down
6 changes: 4 additions & 2 deletions server/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@
]
CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
'https://code-cell-website.vercel.app/',
'https://code-cell-website.vercel.app/', # testing
'https://rcoecodecell.vercel.app/' #production
]

CSRF_TRUSTED_ORIGINS = [
"http://localhost:3000",
'https://code-cell-website.vercel.app/',
'https://code-cell-website.vercel.app/', # testing
'https://rcoecodecell.vercel.app/', #production
]

CORS_ALLOW_CREDENTIALS = True
Expand Down

0 comments on commit 632b669

Please sign in to comment.