Skip to content

Commit

Permalink
Merge pull request #808 from dimagi/cs/fix_non_email_identifiers
Browse files Browse the repository at this point in the history
Fix: Only try to send an email if the identifier type is email
  • Loading branch information
SmittieC authored Oct 31, 2024
2 parents d74f4d5 + 1e494dc commit ad76d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/experiments/views/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def start_session_public(request, team_slug: str, experiment_id: str):
participant_identifier=identifier,
timezone=request.session.get("detected_tz", None),
)
if verify_user:
if verify_user and consent.identifier_type == "email":
return _verify_user_or_start_session(
identifier=identifier,
request=request,
Expand Down

0 comments on commit ad76d48

Please sign in to comment.