Thank you, I`ve solved an issue using java action verifyPassword
When you have a User object, or a specialization of it, you could check the password using the following java action:
authenticate(IContext context, IUser user, java.lang.String password)
Authenticate the given user with the given password.
So if you have a user object and a password, you can check if the match.
//nashorn prototype
var usr=com.mendix.core.Core.retrieveXPathQuery(
root.getContext(),
"//Administration.Account[Name='RNixon']"
)[0];
console.log(
arr[0].getMember(root.getContext(),"Password")
.verifyValue(root.getContext(), 'foobydoo')
); // false
console.log(
arr[0].getMember(root.getContext(),"Password")
.verifyValue(root.getContext(), 'topsecret')
); // true