Incomplete user object in verifyEmail
function if both username and email are changed
#8890
Closed
4 tasks done
Labels
state:released
Released as stable version
state:released-alpha
Released as alpha version
state:released-beta
Released as beta version
type:bug
Impaired feature or lacking behavior that is likely assumed
New Issue Checklist
Issue Description
Incomplete user object in
verifyEmail
function if both username and email are changed. The user object appears as if it was unsaved, withoutobjectId
,createdAt
and other fields being set. This issue does not occur if only the email address or only the username are changed. This was not an issue before the introduction of conditional email verification, but that feature requires the full user object to be made available to the developer.Steps to reproduce
See failing test in #8889.
Actual Outcome
User object appears as if it was unsaved and is missing fields.
Expected Outcome
Complete user object should be passed to
verifyEmail
function.Environment
Server
7.0.0-alpha.7
The text was updated successfully, but these errors were encountered: