1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-24 08:18:48 -05:00

Strip spaces from phone number

This commit is contained in:
Tankred Hase 2014-09-22 13:15:45 +02:00
parent 1311cd1c5e
commit 513d29ad79

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;