var app=angular.module("user",[]).controller("passwordController",function($scope,$http,$location,storage){$scope.status=0;$scope.loading=!1;if(document.location.href.indexOf("lang=en")>=0){$scope.translations={userName:"E-mail address",continue_button:"next",status_1_title:"Within the next minutes you will receive an e-mail with further instructions.",status_1_desc:"If you do not receive an e-mail, please contact customer support and request a new password.",status_2_title:"An error has occurred",status_2_desc_1:"The password could not be requested.",status_2_desc_azure:"The account is linked to a Microsoft Azure account, so the password cannot be reset here.",status_2_desc_2:"Please contact customer support and request a new password.",status_3_desc:"You may not request a password more than once within 5 minutes.",}}else{$scope.translations={userName:"E-Mail Adresse",continue_button:"weiter",status_1_title:"Innerhalb der nächsten Minuten erhältst Du eine E-Mail mit weiteren Anweisungen.",status_1_desc:"Solltest Du keine E-Mail erhalten, wende Dich bitte an den Kundensupport und fordere ein ein neues Passwort an.",status_2_title:"Es ist ein Fehler aufgetreten",status_2_desc_1:"Es konnte kein neues Password angefordert werden.",status_2_desc_azure:"Der Account ist mit einem Microsoft Azure Account verknüpft, daher kann das Passwort hier nicht zurückgesetzt werden.",status_2_desc_2:"Bitte wende Dich an den Kundensupport und fordere ein ein neues Passwort an.",status_3_desc:"Du kannst innerhalb von 5 Minuten Dein Passwort nur einmal neu anfordern.",}} $scope.requestPassword=function(){var params={user_name:$scope.user_name};$scope.loading=!0;$http.post("/password/check/request",params).then(function(result){$scope.status=1;$scope.loading=!0},function(result){$scope.loading=!1;switch(result.data.code){case 3:$scope.status=3;break;case 2000010:$scope.status=2;$scope.oAuthError="azure";break;default:$scope.status=2}})}});app.config(['$sceProvider',function($sceProvider){$sceProvider.enabled(!1)}])