Commit e0b7f4615bf1ad64af7890f8dcefe81d00965f61
1 parent
a2b43ac1
Exists in
master
and in
2 other branches
refactoring normalizeLogin function
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
www/js/controllers.js
@@ -199,7 +199,7 @@ angular.module('confjuvapp.controllers', []) | @@ -199,7 +199,7 @@ angular.module('confjuvapp.controllers', []) | ||
199 | $scope.data = {}; | 199 | $scope.data = {}; |
200 | 200 | ||
201 | $scope.setLoginBasedOnEmail = function() { | 201 | $scope.setLoginBasedOnEmail = function() { |
202 | - if (!$scope.data.login && $scope.data.email) $scope.data.login = ConfJuvAppUtils.normalizeLogin($scope.data.email); | 202 | + if (!$scope.profile.login && $scope.profile.email) $scope.profile.login = ConfJuvAppUtils.normalizeLogin($scope.profile.email); |
203 | }; | 203 | }; |
204 | 204 | ||
205 | // Function to register | 205 | // Function to register |