Login and Register user using date stored in database (Mendix version : 8.17.1)

0
Hi Team, I am developing Login and Registration of a user into the system. So I am storing users’ usernames and passwords in login entity in domain model.  How can I validate if the particular username is associated with that password in my database. I tried it using microflows but it did not work. Please suggest.
asked
1 answers
0

Create a java action with a call to the method Core.authenticate(IContext context, IUser user, java.lang.String password)

As passwords are (and shouold be) stored encrypted hashes there is no way to retrieve the data for the password.

For more information on the java method see: https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/Core.html#authenticate(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IUser,java.lang.String)

answered