Password validation

Password can be validated using the following method

  let options = {

                                recordType: ‘your_customrecord’,

                                recordId: //record id,

                                fieldId: ‘field_for_validation’,

                                value: //the value used for validation

                            };

                            log.debug(“options”,options)

                     

                           result = crypto.checkPasswordField(options) ? 1 : 0;

                            log.debug(“result”,result)

Leave a comment

Your email address will not be published. Required fields are marked *