Viewing File: /usr/local/cpanel/base/frontend/jupiter/passwd/views/ExternalAuthController.min.js

define(["angular","cjt/util/locale","uiBootstrap","cjt/directives/alertList","cjt/services/alertService","cjt/directives/actionButtonDirective"],(function(e,t){"use strict";var r;try{(r=e.module("App")).value("PAGE",window.PAGE),r.value("LOCALE",t)}catch(t){r=e.module("App",[])}var n=function(e,t,r,n,a){var i=this;return i.PAGE=t,i.LOCALE=r,i.remove_link=function(e,t){return n.unlink_provider(e.subject_unique_identifier,e.provider_id).then((function(){return n.get_authn_links().then((function(n){i.PAGE.configured_providers=n.data,a.add({type:"success",message:r.maketext("Successfully unlinked the “[_1]” account “[_2]”",t,e.preferred_username),closeable:!0,replace:!1,autoClose:1e4,group:"passwdExternalAuth"})}),(function(e){a.add({type:"danger",message:r.maketext("The system encountered an error while it tried to retrieve results, please refresh the interface: [_1]",e),closeable:!0,replace:!1,group:"passwdExternalAuth"})}))}),(function(e){a.add({type:"danger",message:e,closeable:!0,replace:!1,group:"passwdExternalAuth"})}))},i};return n.$inject=["$scope","PAGE","LOCALE","ExternalAuthService","alertService"],r.controller("ExternalAuthController",n)}));
Back to Directory File Manager