mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
parent
a673db87f8
commit
e81ed716ec
|
@ -32,7 +32,7 @@ class RegisterView(CreateAPIView):
|
|||
def get_response_data(self, user):
|
||||
if allauth_settings.EMAIL_VERIFICATION == \
|
||||
allauth_settings.EmailVerificationMethod.MANDATORY:
|
||||
return {}
|
||||
return {"detail": _("Verification e-mail sent")}
|
||||
|
||||
if getattr(settings, 'REST_USE_JWT', False):
|
||||
data = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user