Server IP : 213.176.29.180 / Your IP : 18.119.124.204 Web Server : Apache System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 User : webtaragh ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/webtaragh/public_html/whmcs/assets/js/whmcs/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/** * WHMCS client module * * @copyright Copyright (c) WHMCS Limited 2005-2017 * @license http://www.whmcs.com/license/ WHMCS Eula */ (function(module) { if (!WHMCS.hasModule('client')) { WHMCS.loadModule('client', module); } })({ registration: function () { this.prefillPassword = function (params) { params = params || {}; if (typeof params.hideContainer === 'undefined') { var id = (jQuery('#inputSecurityQId').attr('id')) ? '#containerPassword' : '#containerNewUserSecurity'; params.hideContainer = jQuery(id); params.hideInputs = true; } else if (typeof params.hideContainer === 'string' && params.hideContainer.length) { params.hideContainer = jQuery(params.hideContainer); } if (typeof params.form === 'undefined') { params.form = { password: [ {id: 'inputNewPassword1'}, {id: 'inputNewPassword2'} ] }; } var prefillFunc = function () { var $randomPasswd = WHMCS.utils.simpleRNG(); for (var i = 0, len = params.form.password.length; i < len; i++) { jQuery('#' + params.form.password[i].id) .val($randomPasswd).trigger('keyup'); } }; if (params.hideInputs) { params.hideContainer.slideUp('fast', prefillFunc); } else { prefillFunc(); } }; return this; }});