assign new users to "Authenticated" role
This commit is contained in:
@@ -45,6 +45,8 @@ namespace LeafWeb.WebCms.EventHandlers
|
|||||||
e.Entity.SetValue(LeafWebMemberProperties.VerificationToken, token);
|
e.Entity.SetValue(LeafWebMemberProperties.VerificationToken, token);
|
||||||
sender.Save(e.Entity);
|
sender.Save(e.Entity);
|
||||||
|
|
||||||
|
sender.AssignRole(e.Entity.Id, "Authenticated");
|
||||||
|
|
||||||
// Send Email
|
// Send Email
|
||||||
BackgroundJob.Enqueue<EmailNotificationService>(
|
BackgroundJob.Enqueue<EmailNotificationService>(
|
||||||
email => email.SendVerifyMemberEmail(e.Entity.Email));
|
email => email.SendVerifyMemberEmail(e.Entity.Email));
|
||||||
|
|||||||
Reference in New Issue
Block a user