Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit a5dc287

Browse files
Some changes made to the backend of the email verification sustem
1 parent 3cd1919 commit a5dc287

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Profile/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def SendVerificationEmail(username, email):
138138
email_body = render_to_string('mail/verifyUser.Html', context)
139139

140140
email = EmailMessage(
141-
'Complete Your Signup On ZoloEarn',
141+
f'{pin} is your pin for ZoloEarn App',
142142
email_body,
143143
'zoloearn.llc@gmail.com',
144144
to=[email]
@@ -191,6 +191,7 @@ class AppRating(APIView):
191191
def post(self, request, *args):
192192
user_wallet = Wallet.objects.get(user=request.user)
193193
user_wallet.points += 30
194+
user_wallet.save()
194195

195196
# Adding entry to recent earnings
196197
user_recent_earning = RecentEarnings.objects.create(user=request.user, way_to_earn="App Rating", point_earned=30)

0 commit comments

Comments
 (0)