Skip to content

Commit

Permalink
fix for sms verification
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Sep 14, 2020
1 parent 312755d commit 83e82ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/dashboard/templates/profiles/tab_trust.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ <h3 class="py-3 font-weight-bold">Trust Bonus</h3>
Bonus of a user is, the more we can be confident that the user is real. Higher
Trust Bonuses come with benefits, such as higher CLR match for grants.
To increase your Trust Bonus, here are some steps you can take:
SMS: {{is_sms_verified}}
{% for call in upcoming_calls %}
<form class="js-upcomingBrightIDCalls-form">
<input type="hidden" id="id" name="id" value="{{ call.id }}">
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2869,7 +2869,7 @@ def get_profile_tab(request, profile, tab, prev_context):
today = datetime.today()
context['brightid_status'] = get_brightid_status(profile.brightid_uuid)
context['upcoming_calls'] = UpcomingDate.objects.filter(context_tag='brightid').filter(date__gte=today).order_by('date').values()
context['sms_is_verified'] = profile.sms_verification
context['is_sms_verified'] = profile.sms_verification
else:
raise Http404
return context
Expand Down

2 comments on commit 83e82ac

@owocki
Copy link
Contributor Author

@owocki owocki commented on 83e82ac Sep 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @apbendi ; you had a slight variable name issue :)

@apbendi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 Oof good catch @owocki

Please sign in to comment.