chore(js/css): update generated files

This commit is contained in:
InverseBot
2021-05-06 00:28:35 -04:00
parent d303247481
commit 8a10ae140d
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
!function(){"use strict";function o(o,n,t,e,i,a){var r=this;this.$onInit=function(){this.creds={username:n.cookieUsername,password:null,rememberLogin:angular.isDefined(n.cookieUsername)&&0<n.cookieUsername.length},/\blanguage=/.test(n.location.search)&&(this.creds.language=n.language),this.loginState=!1,this.verificationCodePattern="\\d{6}",this.showLogin=!1,t(function(){r.showLogin=!0},100)},this.login=function(){return r.loginState="authenticating",a.login(r.creds).then(function(o){o.gamissingkey?r.loginState="googleauthenticatorcode":(r.loginState="logged",r.cn=o.cn,t(function(){n.location.href===o.url?n.location.reload(!0):n.location.href=o.url},1e3))},function(o){r.loginState="error",r.errorMessage=o.error}),!1},this.restoreLogin=function(){r.loginState=!1,delete r.creds.verificationCode},this.showAbout=function(o){function n(o){this.closeDialog=function(){o.hide()}}i.show({targetEvent:o,templateUrl:"aboutBox.html",controller:n,controllerAs:"about"}),n.$inject=["$mdDialog"]},this.changeLanguage=function(o){n.location.href=ApplicationBaseURL+"login?language="+this.creds.language}}angular.module("SOGo.MainUI",["SOGo.Common","SOGo.Authentication"]),o.$inject=["$scope","$window","$timeout","Dialog","$mdDialog","Authentication"],angular.module("SOGo.MainUI").controller("LoginController",o)}();
!function(){"use strict";function o(o,s,e,n,r,i){var a=this;this.$onInit=function(){this.creds={username:s.cookieUsername,password:null,domain:null,rememberLogin:angular.isDefined(s.cookieUsername)&&0<s.cookieUsername.length},/\blanguage=/.test(s.location.search)&&(this.creds.language=s.language),this.loginState=!1,this.verificationCodePattern="\\d{6}",this.passwords={newPassword:null,newPasswordConfirmation:null,oldPassword:null},this.showLogin=!1,e(function(){a.showLogin=!0},100)},this.login=function(){return a.loginState="authenticating",i.login(a.creds).then(function(o){o.gamissingkey?a.loginState="googleauthenticatorcode":(a.loginState="logged",a.cn=o.cn,a.url=o.url,e(function(){a.continueLogin()},1e3))},function(o){var s,e;a.loginState="error",o.error?a.errorMessage=o.error:0<o.grace?(a.loginState="passwordwillexpire",a.cn=o.cn,a.url=o.url,a.errorMessage=l("You have %{0} logins remaining before your account is locked. Please change your password in the preference dialog.",o.grace)):0<o.expire?(e=86400<o.expire?(s=Math.round(o.expire/86400),l("days")):3600<o.expire?(s=Math.round(o.expire/3600),l("hours")):60<o.expire?(s=Math.round(o.expire/60),l("minutes")):(s=o.expire,l("seconds")),a.loginState="passwordwillexpire",a.cn=o.cn,a.url=o.url,a.errorMessage=l("Your password is going to expire in %{0} %{1}.",s,e)):o.passwordexpired&&(a.loginState="passwordexpired",a.url=o.url)}),!1},this.restoreLogin=function(){a.loginState=!1,delete a.creds.verificationCode},this.continueLogin=function(){s.location.href===a.url?s.location.reload(!0):s.location.href=a.url},this.showAbout=function(o){function s(o){this.closeDialog=function(){o.hide()}}r.show({targetEvent:o,templateUrl:"aboutBox.html",controller:s,controllerAs:"about"}),s.$inject=["$mdDialog"]},this.changeLanguage=function(o){s.location.href=ApplicationBaseURL+"login?language="+this.creds.language},this.canChangePassword=function(o){return this.passwords.newPasswordConfirmation&&this.passwords.newPasswordConfirmation.length&&this.passwords.newPassword!=this.passwords.newPasswordConfirmation?(o.newPasswordConfirmation.$setValidity("newPasswordMismatch",!1),!1):(o.newPasswordConfirmation.$setValidity("newPasswordMismatch",!0),!!(this.passwords.newPassword&&0<this.passwords.newPassword.length&&this.passwords.newPasswordConfirmation&&this.passwords.newPasswordConfirmation.length&&this.passwords.newPassword==this.passwords.newPasswordConfirmation&&this.passwords.oldPassword&&0<this.passwords.oldPassword.length))},this.changePassword=function(){i.changePassword(this.creds.username,this.creds.domain,this.passwords.newPassword,this.passwords.oldPassword).then(function(o){a.loginState="message",a.url=o.url,a.errorMessage=l("The password was changed successfully.")},function(o){a.loginState="error",a.errorMessage=o})}}angular.module("SOGo.MainUI",["SOGo.Common","SOGo.Authentication"]),o.$inject=["$scope","$window","$timeout","Dialog","$mdDialog","Authentication"],angular.module("SOGo.MainUI").controller("LoginController",o)}();
//# sourceMappingURL=Main.js.map