assign new users to "Authenticated" role

This commit is contained in:
2020-07-15 21:41:44 -04:00
parent f1b1cd97ec
commit c8e9a65f70
+2
View File
@@ -45,6 +45,8 @@ namespace LeafWeb.WebCms.EventHandlers
e.Entity.SetValue(LeafWebMemberProperties.VerificationToken, token);
sender.Save(e.Entity);
sender.AssignRole(e.Entity.Id, "Authenticated");
// Send Email
BackgroundJob.Enqueue<EmailNotificationService>(
email => email.SendVerifyMemberEmail(e.Entity.Email));