Skip to content

Commit 2bb9ee7

Browse files
committed
to_alias_type to alias_type_u
1 parent 4ec3b05 commit 2bb9ee7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drfpasswordless/serializers.py

-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ def validate(self, attrs):
236236
raise serializers.ValidationError(msg)
237237
except ValidationError:
238238
msg = _('Invalid alias parameters provided.')
239-
raise
240239
raise serializers.ValidationError(msg)
241240

242241

drfpasswordless/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def create_callback_token_for_user(user, alias_type, token_type):
4747
return CallbackToken.objects.create(
4848
user=user,
4949
key=api_settings.PASSWORDLESS_DEMO_USERS[user.pk],
50-
to_alias_type=token_type,
50+
to_alias_type=alias_type_u,
5151
to_alias=getattr(user, to_alias_field),
5252
type=token_type
5353
)

0 commit comments

Comments
 (0)