Skip to content

Commit

Permalink
fix context
Browse files Browse the repository at this point in the history
  • Loading branch information
firstTimeCaller committed Feb 7, 2020
1 parent 05a9ec0 commit 663cc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drfpasswordless/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def send_email_with_callback_token(user, email_token, **kwargs):

# Inject context if user specifies.
if api_settings.PASSWORDLESS_LOGIN_URL_DOMAIN:
context['callback_token'] = api_settings.PASSWORDLESS_LOGIN_URL_DOMAIN + api_settings.PASSWORDLESS_AUTH_PREFIX + 'login/' + user.email + '/' + email_token.key
context = inject_template_context({'callback_token': api_settings.PASSWORDLESS_LOGIN_URL_DOMAIN + api_settings.PASSWORDLESS_AUTH_PREFIX + 'login/' + user.email + '/' + email_token.key, })
else:
context = inject_template_context({'callback_token': email_token.key, })

Expand Down

0 comments on commit 663cc28

Please sign in to comment.