Add verification e-mail sent message

#240
This commit is contained in:
Maxim Kukhtenkov 2016-12-21 11:31:04 -08:00
parent a673db87f8
commit e81ed716ec

View File

@ -32,7 +32,7 @@ class RegisterView(CreateAPIView):
def get_response_data(self, user): def get_response_data(self, user):
if allauth_settings.EMAIL_VERIFICATION == \ if allauth_settings.EMAIL_VERIFICATION == \
allauth_settings.EmailVerificationMethod.MANDATORY: allauth_settings.EmailVerificationMethod.MANDATORY:
return {} return {"detail": _("Verification e-mail sent")}
if getattr(settings, 'REST_USE_JWT', False): if getattr(settings, 'REST_USE_JWT', False):
data = { data = {