From 41b89b8bce89a3ca64d9ba965e11ea2de4cb32c1 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Fri, 1 Mar 2013 14:45:39 +0000 Subject: [PATCH] fix(authentication): remove console.log --- client/src/app/app.js | 2 +- client/src/common/authentication/login/LoginFormController.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/app/app.js b/client/src/app/app.js index 3955e732..486020d5 100644 --- a/client/src/app/app.js +++ b/client/src/app/app.js @@ -29,7 +29,7 @@ angular.module('app').constant('I18N.MESSAGES', { 'login.reason.notAuthorized':"You do not have the necessary access permissions. Do you want to login as someone else?", 'login.reason.notAuthenticated':"You must be logged in to access this part of the application.", 'login.error.invalidCredentials': "Login failed. Please check your credentials and try again.", - 'login.error.serverError': "There was a problem with authenticating." + 'login.error.serverError': "There was a problem with authenticating: {{exception}}." }); angular.module('app').config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) { diff --git a/client/src/common/authentication/login/LoginFormController.js b/client/src/common/authentication/login/LoginFormController.js index 4a82bb8d..3af8efde 100644 --- a/client/src/common/authentication/login/LoginFormController.js +++ b/client/src/common/authentication/login/LoginFormController.js @@ -30,9 +30,8 @@ angular.module('authentication.login.form', ['services.localizedMessages']) $scope.authError = localizedMessages.get('login.error.invalidCredentials'); } }, function(x) { - console.log(x); // If we get here then there was a problem with the login request to the server - $scope.authError = localizedMessages.get('login.error.serverError'); + $scope.authError = localizedMessages.get('login.error.serverError', { exception: x }); }); };