Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Overriding Notification Message Text in Plugin #2243

Open
justinshewell opened this issue Apr 30, 2024 · 1 comment
Open

Overriding Notification Message Text in Plugin #2243

justinshewell opened this issue Apr 30, 2024 · 1 comment

Comments

@justinshewell
Copy link

This more of a "how-to" question than an issue, but I couldn't find any other forum where I could ask this question.

I am writing a plugin for Rainloop to change the password via Postfixadmin. I have got everything working except the Notifications. When the password doesn't fit Postfixadmin's requirements, I want to display something like "Password must have at least 2 numbers" but the only option is "Password is too weak". I am trying to find a way to display additional information but nothing works.

RainLoop version, browser, OS:
v 1.17.0

Expected behavior and actual behavior:
I put a string (e.g. "Password needs at least 2 numbers" in the $sAdditionalMessage parameter of the "ClientException" but it doesn't show in the browser.

Steps to reproduce the problem:

Logs or screenshots:

@the-djmaze
Copy link
Contributor

the-djmaze commented Jun 10, 2024

You need to modify https://github.com/RainLoop/rainloop-webmail/blob/master/dev/Settings/User/ChangePassword.js

Or throw your own ClientViewError exception with ErrorMessage

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants