at path:ROOT / clients / assets / js / whmcs / client.js
run:R W Run
2.97 KB
2026-04-08 19:29:25
R W Run
9 KB
2026-04-08 19:29:26
R W Run
1.49 KB
2026-04-08 19:29:25
R W Run
2.44 KB
2026-04-08 19:29:28
R W Run
5.28 KB
2026-04-08 19:29:28
R W Run
45 By
2026-04-08 19:29:27
R W Run
5.71 KB
2026-04-08 19:29:26
R W Run
4.91 KB
2026-04-08 19:29:25
R W Run
3.24 KB
2026-04-08 19:29:27
R W Run
24.58 KB
2026-04-08 19:29:26
R W Run
13.16 KB
2026-04-08 19:29:26
R W Run
5.46 KB
2026-04-08 19:29:27
R W Run
error_log
📄client.js
1/**
2 * WHMCS client module
3 *
4 * @copyright Copyright (c) WHMCS Limited 2005-2017
5 * @license http://www.whmcs.com/license/ WHMCS Eula
6 */
7(function(module) {
8 if (!WHMCS.hasModule('client')) {
9 WHMCS.loadModule('client', module);
10 }
11})({
12registration: function () {
13 this.prefillPassword = function (params) {
14 params = params || {};
15 if (typeof params.hideContainer === 'undefined') {
16 var id = (jQuery('#inputSecurityQId').attr('id')) ? '#containerPassword' : '#containerNewUserSecurity';
17 params.hideContainer = jQuery(id);
18 params.hideInputs = true;
19 } else if (typeof params.hideContainer === 'string' && params.hideContainer.length) {
20 params.hideContainer = jQuery(params.hideContainer);
21 }
22
23 if (typeof params.form === 'undefined') {
24 params.form = {
25 password: [
26 {id: 'inputNewPassword1'},
27 {id: 'inputNewPassword2'}
28 ]
29 };
30 }
31
32 var prefillFunc = function () {
33 var $randomPasswd = WHMCS.utils.simpleRNG();
34 for (var i = 0, len = params.form.password.length; i < len; i++) {
35 jQuery('#' + params.form.password[i].id)
36 .val($randomPasswd).trigger('keyup');
37 }
38 };
39
40 if (params.hideInputs) {
41 params.hideContainer.slideUp('fast', prefillFunc);
42 } else {
43 prefillFunc();
44 }
45 };
46
47 return this;
48}});
49