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:
parent
1311cd1c5e
commit
513d29ad79
@ -29,7 +29,7 @@ define(function(require) {
|
|||||||
appCtrl._adminDao.createUser({
|
appCtrl._adminDao.createUser({
|
||||||
emailAddress: $scope.emailAddress,
|
emailAddress: $scope.emailAddress,
|
||||||
password: $scope.pass,
|
password: $scope.pass,
|
||||||
phone: $scope.phone,
|
phone: $scope.phone.replace(/\s+/g, ''), // remove spaces from the phone number
|
||||||
betaCode: $scope.betaCode.toUpperCase()
|
betaCode: $scope.betaCode.toUpperCase()
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
$scope.busy = false;
|
$scope.busy = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user