I am trying to reset password with following script
/*
*@NApiVersion 2.0
*@NScriptType ClientScript
*/
require(['N/auth'],
function(auth) {
function changePass() {
var password = '111';
auth.changePassword({
currentPassword: password,
newPassword: '222'
});
return 'ChangeDone';
}
});
and i run it as RESTlet in SOAPUI
i receive this error:
error code: REFERENCE_ERROR error message:ReferenceError: "require" is not defined
Help Please!!