Skip to content

Commit

Permalink
fix(authentication): remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Mar 1, 2013
1 parent e0dbe95 commit 41b89b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
};

Expand Down

0 comments on commit 41b89b8

Please sign in to comment.