Skip to content

Commit 705000c

Browse files
committed
Comments
1 parent f0e1d1f commit 705000c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drfpasswordless/signals.py

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def invalidate_previous_tokens(sender, instance, created, **kwargs):
2828
def check_unique_tokens(sender, instance, **kwargs):
2929
"""
3030
Ensures that mobile and email tokens are unique or tries once more to generate.
31+
Note that here we've decided keys are unique even across auth and validation.
32+
We could consider relaxing this in the future as well by filtering on the instance.type.
3133
"""
3234
if instance._state.adding:
3335
# save is called on a token to create it in the db

0 commit comments

Comments
 (0)