Validate Encrypt Password function

Hi mates,
I'm now developing the user change password action, i'm having difficulties validating the old password he entered with his current password in database because of the Salt hashing, I have found the change password flow on the Users clone espace of the outsystems users manager, They are a function called Validate Encrypt Password

 

I'm having exception unknown function, but I don't know how to add/use this function in my module. 

Hi Mohamed,

This is probably an internal function of the Users module.

But you have the following:

The Validate password receives the plain text pass and the hashed pass (usually from the database) and returns if they match.

Cheers,

Eduardo Jauch

Hi Eduardo,
   as you said yes I have used Platform Password Utils but, I found the Validate Encrypt Password  in the Authentication section  Thanks Eduardo

Hi Mohamed, 

Why the ValidatePassword is not an option for you? :)
What is the problem you are facing that it does not work?

Cheers,

Eduardo Jauch

Solution

Holla Eduardo,

I have used the change password WebBlock, which uses the ValidateEncryptPassword function so i had to include it in my module. I included both of the (ValidateEncryptPassword and ValidatePassword) functions.

Regards,

Mohamed AlMokadem

Solution

Eduardo Jauch wrote:

Hi Mohamed,

This is probably an internal function of the Users module.

But you have the following:

The Validate password receives the plain text pass and the hashed pass (usually from the database) and returns if they match.

Cheers,

Eduardo Jauch

Hi.


Do you know if this "Validate password" function is still available?

Because im not finding it anywhere and this function looks like exactly what i need.

(Im using the latet version of outsystems)


Cheers.




Hi Leonardo,

The ValidatePassword function is still available and should be in the same PlatformPasswordUtils API.

Just click ‘Manage Dependencies’ while you have your module open in Service Studio and look for PlatformPasswordUtils extension in the Producers column and the ValidatePassword action should be in there in the Public Elements area.

Regards,

Nordin

Nordin Ahdi wrote:

Hi Leonardo,

The ValidatePassword function is still available and should be in the same PlatformPasswordUtils API.

Just click ‘Manage Dependencies’ while you have your module open in Service Studio and look for PlatformPasswordUtils extension in the Producers column and the ValidatePassword action should be in there in the Public Elements area.

Regards,

Nordin

Thanks, i found it and it was exactly what i needed.