Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. First create an Action that will send the email on password reset:

    1. Load the Setup tab

    2. Click on Actions

    3. Click Add

    4. Enter a Name, e.g. ‘Send email on password reset’

    5. Enter User.Update in the Event Code field to indicate when the Action script should fire

    6. In the Script text box enter the script below

      Code Block
      User user = User.GetByID(Convert.ToInt32(context["UserID"]));
      try
      {
        User olduser = User.Deserialize((string)context["OldRow"]);
        if(user.Password != olduser.Password)
        {
          Logisense.Boss.Logic.Email.SendToBillingContacts(user, "Password is reset", "Your password has been reset as you requested. Your new password is: " + user.Password + "", null,new System.Net.Mail.Attachment[]{});
        }
      }
      catch{}
      return true;
    7. Click Save and in a few moments you should be returned to the Actions screen

  2. Next configure Email Settings, see Email Settings Configuration

  3. Finally ensure the EngageIP Event and Job Services are running. These Services will send the email when an admin resets a password

...