Check whether a string is a valid password on the current application

0
Is there a way to check whether a string will be allowed to be set as a password on the current application? If I change the password on an account entity into an invalid password the user automatically receives a pop-up message with the validation message. I would like to receive this feedback as a string so I can display it a different way. Otherwise I could do without the feedback and just receive a boolean whether the password is valid or not. Thanks in advance!
asked
1 answers
4

Hi Sjoerd,

If you add custom error handling to the commit that saves the password you can show a custom message instead of the default. 

Here is an example that I just tested. I’m showing a custom message instead of the default. If you want the feedback, the latest error message token will have the feedback text as a string.

https://modelshare.mendix.com/models/83ac1d77-c9ff-4cee-aefd-22caedc979fd/change-password

 

Hope this helps!

answered