Essaye ..
Le jeu. 15 févr. 2024 à 18:37, MISHEL HANNA a
écrit :
> hello
> i want to make api for register but i want modify the way of email
> activation
> in djoser to activate email it done by uuid/token but i do not want it to
> be done like that
> i want to activate the email by verification
try this # Custom Djoser serializer
from djoser.serializers import UserCreateSerializer
class CustomUserCreateSerializer(UserCreateSerializer):
def perform_create(self, serializer):
user = serializer.save()
# Generate verification code and send email
verification_code =
hello
i want to make api for register but i want modify the way of email
activation
in djoser to activate email it done by uuid/token but i do not want it to
be done like that
i want to activate the email by verification code
do you have any suggestions or any other libraries i can use it
--
Y
3 matches
Mail list logo