File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/change_root_password/index.min.js
Back
define(["angular","cjt/util/locale","cjt/modules","ngAnimate","ngSanitize"],(function(angular,LOCALE){"use strict";return function(){angular.module("whm.changeRootPassword",["cjt2.whm","cjt2.config.whm.configProvider","ngAnimate","ngSanitize","angular-growl"]);var app=require(["cjt/bootstrap","cjt/directives/validateEqualsDirective","cjt/directives/passwordFieldDirective","cjt/directives/toggleLabelInfoDirective","cjt/directives/actionButtonDirective","cjt/directives/validationContainerDirective","cjt/directives/validationItemDirective","app/services/changePasswordService"],(function(BOOTSTRAP){var DEFAULT_PASSWORD_STRENGTH=10;var app=angular.module("whm.changeRootPassword");app.controller("changeRootPasswordController",["$scope","changePasswordService","growl",function($scope,changePasswordService,growl){$scope.password="";$scope.minimumPasswordStrength=angular.isDefined(PAGE.MINIMUM_PASSWORD_STRENGTH)?parseInt(PAGE.MINIMUM_PASSWORD_STRENGTH,10):DEFAULT_PASSWORD_STRENGTH;$scope.submitChangeRootPassword=function(){return changePasswordService.requestPasswordChange("root",$scope.password).then((function(result){growl.success(LOCALE.maketext("The system successfully updated the [asis,root] password. The following service passwords changed: [list_and,_1]",result.data));resetAllFields()}),(function(error){growl.error(error);resetAllFields()}))};function resetAllFields(){$scope.password=$scope.confirmPassword="";if($scope.changeRootPasswordForm){$scope.changeRootPasswordForm.$setPristine()}}}]);BOOTSTRAP(document,"whm.changeRootPassword")}));return app}}));
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings