fix firefox CDN issue and ensure twitter handle, email and username are lowercase

This commit is contained in:
Michael Q Larson
2015-01-09 15:10:34 -08:00
parent 5decaf13f0
commit 4e91e94463
5 changed files with 17 additions and 12 deletions

View File

@@ -47,6 +47,9 @@ profileValidation.controller('profileValidationController', ['$scope', '$http',
function($scope, $http) {
$http.get('/account/api').success(function(data) {
$scope.user = data.user;
$scope.user.profile.username = $scope.user.profile.username.toLowerCase();
$scope.user.email = $scope.user.email.toLowerCase();
$scope.user.profile.twitterHandle = $scope.user.profile.twitterHandle.toLowerCase();
});
}
]);