Closed Killian-Morin closed 1 month ago
Le group name utilisé pour la websocket ne peut pas contenir de '@' ou de '+' donc ajouter un test qui n'autorise pas la création d'un compte avec un '@' ou un '+' dans l'username.
On obtient cet erreur en back sinon: TypeError: Group name must be a valid unicode string with length < 100 containing only ASCII alphanumerics, hyphens, underscores, or periods
re_path(r'wss/notifications/(?P<username>[a-zA-Z0-9@.+-_]+)/$', consumers.NotificationConsumer.as_asgi()),