|
const valid = await metarhia.metautil.validatePassword(password, hash); |
The plain password must not be transferred to the 3rd-party code.
This code must use node-embedded functions to get hash and compare it with the stored one.
By the way the password must be salted.
Example/application/api/auth.2/signin.js
Line 7 in 8a50545
The plain password must not be transferred to the 3rd-party code.
This code must use node-embedded functions to get hash and compare it with the stored one.
By the way the password must be salted.