Skip to content

Commit

Permalink
Fix: Only try to send an email if the identifier type is email
Browse files Browse the repository at this point in the history
  • Loading branch information
SmittieC committed Oct 31, 2024
1 parent d74f4d5 commit 1e494dc
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 1e494dc

Please sign in to comment.