Commit 566ca024ab405888efe61e2fdd9184e45385d7de
1 parent
37c091d6
Exists in
master
and in
28 other branches
Made sending verification email return status
It returns whether the email was sent or not. Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
colab/super_archives/models.py
@@ -45,10 +45,12 @@ class EmailAddressValidation(models.Model): | @@ -45,10 +45,12 @@ class EmailAddressValidation(models.Model): | ||
45 | 45 | ||
46 | @classmethod | 46 | @classmethod |
47 | def verify_email(cls, email_address_validation, verification_url): | 47 | def verify_email(cls, email_address_validation, verification_url): |
48 | - email.send_verification_email(email_address_validation.address, | ||
49 | - email_address_validation.user, | ||
50 | - email_address_validation.validation_key, | ||
51 | - verification_url) | 48 | + return email.send_verification_email( |
49 | + email_address_validation.address, | ||
50 | + email_address_validation.user, | ||
51 | + email_address_validation.validation_key, | ||
52 | + verification_url | ||
53 | + ) | ||
52 | 54 | ||
53 | 55 | ||
54 | class EmailAddress(models.Model): | 56 | class EmailAddress(models.Model): |