Retrieving a password

3
Is there any way to retrieve the password of a saved user to a string? I know how to fetch it in a before commit java action but is there any way to get it back after committing?
asked
3 answers
5

Please read this answer for detailed information on password attributes.

answered
2

If you mean the original password contents, then no. The passwords are hashed using the hashing algorithm as defined in the modeler, so there is no way in which the original password can be retrieved after a commit.

answered
1

What do you mean? Do you wish to get the 'unhashed' version of the password or do you wish to save a 'normal' string into an attribute of type Hashstring?

If you mean the last option, then you can simply change the object that has an attribute of type 'hashstring' and set the value of a 'normal' string. If you mean the first option, then it is not possible. If you want to compare hasstrings you can use something like this:

MendixObject.getMendixObject().getValue("Hashstring").equals(Mendixobject.getMendixObject().getValue("OtherHashstring"));

answered