Skip to content

Commit

Permalink
DNN-5542 User approval email sending code moved from UI to business l…
Browse files Browse the repository at this point in the history
…ayer
  • Loading branch information
antoniodgonzalez committed Aug 26, 2014
1 parent 18e2933 commit 455fc9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions DNN Platform/Library/Entities/Users/UserEventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
DeleteAllNotifications(args.User.UserID);
}

Expand Down
2 changes: 1 addition & 1 deletion Website/DesktopModules/Admin/Security/ManageUsers.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

BindMembership();
}
catch (Exception exc) //Module failed to load
Expand Down

0 comments on commit 455fc9f

Please sign in to comment.