Name

global.PwdAlwaysEnrolled

Description

A default Enrollment Check script that always return true for isEnrolled()

Script

var PwdAlwaysEnrolled = Class.create();
PwdAlwaysEnrolled.prototype = {
category: 'password_reset.extension.enrollment_check',    // DO NOT REMOVE THIS LINE!

/**********
 * Returns boolean telling whether the user is enrolled.
 * 
 * @param params.enrolledUserId The sys-id of the user being checked (table: sys_user)
 * @param params.verificationId The sys-id of the verification being checked (table: pwd_verification)
 * @return boolean telling whether the user is enrolled into the specified verification
 **********/
process: function(params) {
  return this.isEnrolled(params.verificationId, params.enrolledUserId);
},

/* eslint-disable no-unused-vars */ 
isEnrolled: function(verificationId, userId) {
  return true;
},
/* eslint-enable */ 

type: 'PwdAlwaysEnrolled'

};

Sys ID

7819ac93eb11010045e1a5115206fe69

Offical Documentation

Official Docs: