Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for confirmation of email addresses. #38

Conversation

vanzegbroecke
Copy link
Contributor

Add support for confirmation of emails.

Created PasswordSignInIfEmailAddressConfirmed next to PasswordSignIn, though it would be nicer if one method could be used like in https://docs.microsoft.com/en-us/aspnet/core/security/authentication/accconfirm?tabs=aspnetcore2x.

Extended SignInResult as to not break any extended code, but I personally think it would be nicer if the SignInResult wasn't focussed on the Owin sign in status, breaking that hardcoded dependency + making it more easily extensible.

Added a method to confirm your email address.

Everything just uses the standard ApplicationUserManager.

I've not added code that generates the token here. In our case, we have a custom RegistrationEmailObserver that adds the token to a custom email. This could again be a nice improvement depending on a setting.

As discussed on Gitter, I realize that you will take steps towards supporting email confirmation, but I need it now. Would appreciate it if this part could already be added to the standard implementation, with any recommendations you may have. If not, I can add the "ConfirmEmailAddress" method to a custom controller, but it's more difficult to do this for the PasswordSignIn because then I'd have to copy all the logic in there, which I'd like to avoid.

@tatarincev
Copy link
Contributor

Done within this issue
VirtoCommerce/vc-platform#1283

@tatarincev tatarincev closed this Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants