Skip to content
Browse files

DNN-5542 User approval email sending code moved from UI to business l…

  • Loading branch information
antoniodgonzalez committed Aug 26, 2014
1 parent 18e2933 commit 455fc9fcb3db038c4cc9d3b8afa57dda15e099d3
@@ -23,6 +23,8 @@
using System.ComponentModel.Composition;
using System.Globalization;

using DotNetNuke.Entities.Portals;
using DotNetNuke.Services.Mail;
using DotNetNuke.Services.Social.Notifications;

namespace DotNetNuke.Entities.Users
@@ -45,6 +47,7 @@ public void UserDeleted(object sender, UserEventArgs args)

public void UserApproved(object sender, UserEventArgs args)
Mail.SendMail(args.User, MessageType.UserRegistrationPublic, PortalSettings.Current);

@@ -692,7 +692,7 @@ private void MembershipAuthorized(object sender, EventArgs e)
UserInfo user = User;
User.Membership.Password = UserController.GetPassword(ref user, "");
Mail.SendMail(User, MessageType.UserRegistrationPublic, PortalSettings);

catch (Exception exc) //Module failed to load

0 comments on commit 455fc9f

Please sign in to comment.
You can’t perform that action at this time.