validatePassword is a function for validating CRAM-MD5 challenge responses. Takes the password of the user as an argument and returns true if the response matches the password
I've added challenge and challengeResponse variables to auth object.
In this way you can write a custom validator (or send challenge data to a different server for) in the onAuth() handler.
Currently the only way to validate a password with CRAM-MD5 method is the
validatePassword()
function.From SMTP Server docs:
I've added
challenge
andchallengeResponse
variables toauth
object. In this way you can write a custom validator (or send challenge data to a different server for) in theonAuth()
handler.