Skip to content

Commit

Permalink
add EmailVerified when creating synthetic user from a getter
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienTant committed Mar 15, 2024
1 parent 9d5f048 commit 1d2a69c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions server/handlers/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ func (ah *ActivityHandler) getOrCreateSyntheticUser(user *clientmodels.User, cre
username := "msteams_" + slug.Make(userDisplayName)

newMMUser := &model.User{
Username: username,
FirstName: userDisplayName,
Email: user.Mail,
Password: ah.plugin.GenerateRandomPassword(),
RemoteId: &shortUserID,
Username: username,
FirstName: userDisplayName,
Email: user.Mail,
Password: ah.plugin.GenerateRandomPassword(),
RemoteId: &shortUserID,
EmailVerified: true,
}
newMMUser.SetDefaultNotifications()
newMMUser.NotifyProps[model.EmailNotifyProp] = "false"
Expand Down

0 comments on commit 1d2a69c

Please sign in to comment.