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);
|
||||
sender.Save(e.Entity);
|
||||
|
||||
sender.AssignRole(e.Entity.Id, "Authenticated");
|
||||
|
||||
// Send Email
|
||||
BackgroundJob.Enqueue<EmailNotificationService>(
|
||||
email => email.SendVerifyMemberEmail(e.Entity.Email));
|
||||
|
||||
Reference in New Issue
Block a user