Skip to content

Commit

Permalink
add token type to demo token
Browse files Browse the repository at this point in the history
  • Loading branch information
budlight committed Apr 6, 2020
1 parent 9a842b7 commit abc45b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drfpasswordless/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def create_callback_token_for_user(user, alias_type, token_type):
user=user,
key=api_settings.PASSWORDLESS_DEMO_USERS[user.pk],
to_alias_type=token_type,
to_alias=getattr(user, to_alias_field)
to_alias=getattr(user, to_alias_field),
type=token_type
)

token = CallbackToken.objects.create(user=user,
Expand Down

0 comments on commit abc45b6

Please sign in to comment.