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

[#169703944] Disable email channel if profile email is not validated #26

Merged

Conversation

francescopersico
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Nov 12, 2019

Codecov Report

Merging #26 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #26   +/-   ##
=======================================
  Coverage   83.97%   83.97%           
=======================================
  Files           6        6           
  Lines         337      337           
  Branches       43       43           
=======================================
  Hits          283      283           
  Misses         53       53           
  Partials        1        1

@@ -157,6 +157,9 @@ export const getCreateNotificationActivityHandler = (
// in their profile
const isEmailEnabledInProfile = profile.isEmailEnabled;

// Check if the email in the user profile is validated
const isEmailValidatedInProfile = profile.isEmailValidated;
Copy link
Contributor

Choose a reason for hiding this comment

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

a question: is this set to true by default when using SPID login ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes on login the user profile is created with

  1. is_email_validated = true if logged in with SPID
  2. is_email_validated = false if logged in with CIE

@francescopersico francescopersico merged commit d54c299 into master Nov 12, 2019
@francescopersico francescopersico deleted the 169703944-disable-email-channel-on-emailnotvalidated branch November 12, 2019 13:52
francescopersico added a commit that referenced this pull request Dec 5, 2019
francescopersico added a commit that referenced this pull request Dec 5, 2019
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