Skip to content

Feature add signup email confirmation#308

Merged
kbeker merged 5 commits intomasterfrom
feature-add-signup-email-confirmation
Jun 14, 2019
Merged

Feature add signup email confirmation#308
kbeker merged 5 commits intomasterfrom
feature-add-signup-email-confirmation

Conversation

@kbeker
Copy link
Contributor

@kbeker kbeker commented Jun 13, 2019

No issue for that.

@kbeker kbeker added the feature New feature label Jun 13, 2019
@kbeker kbeker added this to the next_release milestone Jun 13, 2019
@kbeker kbeker self-assigned this Jun 13, 2019
@kbeker
Copy link
Contributor Author

kbeker commented Jun 13, 2019

Oh, I see that I forgot to generate migration. I will do it tomorrow.

Copy link
Contributor

@dybi dybi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

joker_approves

self.assertTemplateUsed(response, SignUp.template_name)

def test_signup_view_should_add_new_user_on_post(self):
response = self._register_user_using_signup_view()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could add check, that before post there is no users:

self.assertEqual(CustomUser.objects.all().count(), 0)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right :) Done

users/views.py Outdated

def activate(self) -> bool:
user_id = force_text(urlsafe_base64_decode(self.kwargs["encoded_user_id"]))
user = get_user_or_none(user_id=user_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest checing if user exist, and return False upon DoesNotExist exception

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also done :)

@kbeker kbeker force-pushed the feature-add-signup-email-confirmation branch 2 times, most recently from e7da11f to c724f5b Compare June 14, 2019 08:42
@kbeker kbeker force-pushed the feature-add-signup-email-confirmation branch from c724f5b to 1718e36 Compare June 14, 2019 09:00
@kbeker kbeker merged commit 1718e36 into master Jun 14, 2019
@kbeker kbeker deleted the feature-add-signup-email-confirmation branch June 14, 2019 09:01
@rwrzesien
Copy link
Contributor

@kbeker Why not using all-auth for this?

@kbeker
Copy link
Contributor Author

kbeker commented Jun 17, 2019

@rwrzesien To be honest - I didn't know about this. You think that now it is worth to change it into all-auth?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants