Skip to content

Commit 663cc28

Browse files
fix context
1 parent 05a9ec0 commit 663cc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drfpasswordless/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def send_email_with_callback_token(user, email_token, **kwargs):
122122

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

0 commit comments

Comments
 (0)