Forums

Forums / General Discussions / Customizing invalid password message from PortalConnector Plugin

Customizing invalid password message from PortalConnector Plugin

7 posts, 1 answered
  1. Roger Gomez
    Roger Gomez avatar
    6 posts
    Registered:
    28 Aug 2019
    08 Sep 2022
    Link to this post
         When a password does not meet the requirements the Portal CRM plugin is returning the message "Invalid password. It should contain at least {0} alpha-numeric character(s)."
    I know it comes from the plugin as the whole message is Unexpected exception from plug-in (Execute): pavliks.PortalConnector.Plugins.PrePortalUserUpdate: System.Exception: Invalid password. It should contain at least {0} alpha-numeric character(s))

    Is there a way to customize this message? My client has certain password requirements they are enforcing in Sitefinity and we would like to show a message that indicates what those password requirements are
  2. Ian Pekunsal
    Ian Pekunsal avatar
    11 posts
    Registered:
    04 Jul 2022
    13 Sep 2022 in reply to Roger Gomez
    Link to this post
    Hello Roger,

    In the validation tab, you should have a section where you can set custom regex and error messages.
  3. Roger Gomez
    Roger Gomez avatar
    6 posts
    Registered:
    28 Aug 2019
    13 Sep 2022 in reply to Ian Pekunsal
    Link to this post
    Thanks for your answer. What validation tab are you referring to? is it somewhere in Sitefinity or CRM?
  4. Ian Pekunsal
    Ian Pekunsal avatar
    11 posts
    Registered:
    04 Jul 2022
    13 Sep 2022 in reply to Roger Gomez
    Link to this post
    That setting will be in the Sitefinity.
    Edit the form or page where the widget is located and you should be able edit the widget and set custom validation.
  5. Roger Gomez
    Roger Gomez avatar
    6 posts
    Registered:
    28 Aug 2019
    13 Sep 2022 in reply to Ian Pekunsal
    Link to this post
    ok, but the user is setting the password in CRM, with the "Manage Portal Roles" ribbon button in the contact form (this gets added when we Import the TPC solution in Dynamics CRM). So it is Dynamics CRM where the user wants to see a different message than the one the Plugin is throwing currently ( "Invalid password. It should contain at least {0} alpha-numeric character(s)."). So the question was if this was possible, I imagine there are many more options in Sitefinity itself, and modifying configuration/widgets, etc. But in this case it is the message that the CRM Plugin is throwing
  6. Ian Pekunsal
    Ian Pekunsal avatar
    11 posts
    Registered:
    04 Jul 2022
    Answered
    16 Sep 2022 in reply to Roger Gomez
    Link to this post
    Hello Roger,

    Thank you for your patience.
    If this issue is related to Dynamics CRM I would encourage you to contact our support team at support@pavliks.com .

    Meanwhile, I was able to find this setting on Sitefinity which enables you to pull some error messages from CRM. https://imgur.com/a/GqX4Tf1

    Kindly,
    -Ian

     

    Last modified on 16 Sep 2022 12:09 by Ian Pekunsal
  7. Roger Gomez
    Roger Gomez avatar
    6 posts
    Registered:
    28 Aug 2019
    16 Sep 2022 in reply to Ian Pekunsal
    Link to this post
    Thanks a lot, the label you found is exactly the one that is being returned to the plugin. I just adjusted it to the value requested by the client

    Regards,
7 posts, 1 answered