Skip to content

Commit

Permalink
to_alias_type to alias_type_u
Browse files Browse the repository at this point in the history
  • Loading branch information
budlight committed Apr 6, 2020
1 parent 4ec3b05 commit 2bb9ee7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion drfpasswordless/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ def validate(self, attrs):
raise serializers.ValidationError(msg)
except ValidationError:
msg = _('Invalid alias parameters provided.')
raise
raise serializers.ValidationError(msg)


Expand Down
2 changes: 1 addition & 1 deletion drfpasswordless/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def create_callback_token_for_user(user, alias_type, token_type):
return CallbackToken.objects.create(
user=user,
key=api_settings.PASSWORDLESS_DEMO_USERS[user.pk],
to_alias_type=token_type,
to_alias_type=alias_type_u,
to_alias=getattr(user, to_alias_field),
type=token_type
)
Expand Down

0 comments on commit 2bb9ee7

Please sign in to comment.