Strip spaces from phone number

This commit is contained in:
Tankred Hase 2014-09-22 13:15:45 +02:00
parent 1311cd1c5e
commit 513d29ad79
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ define(function(require) {
appCtrl._adminDao.createUser({
emailAddress: $scope.emailAddress,
password: $scope.pass,
phone: $scope.phone,
phone: $scope.phone.replace(/\s+/g, ''), // remove spaces from the phone number
betaCode: $scope.betaCode.toUpperCase()
}, function(err) {
$scope.busy = false;