From 39bf8a3e36172a02296e48ea302518ac786c5727 Mon Sep 17 00:00:00 2001 From: Christian Mueller Date: Thu, 15 Mar 2018 11:02:59 +0100 Subject: [PATCH] allow to use mobile phone numbers from outside the US --- S3WebApp/S3/modules/signup/signup.html | 4 ++-- S3WebApp/S3/modules/signup/signup.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/S3WebApp/S3/modules/signup/signup.html b/S3WebApp/S3/modules/signup/signup.html index d745e20..3d82425 100644 --- a/S3WebApp/S3/modules/signup/signup.html +++ b/S3WebApp/S3/modules/signup/signup.html @@ -38,10 +38,10 @@

Sign Up

- +

This field is required

-

Digits only please. Must be a valid 10 digit phone number

+

Digits only please. Must be a valid phone number with country code but without leading '+' or '00'.

diff --git a/S3WebApp/S3/modules/signup/signup.js b/S3WebApp/S3/modules/signup/signup.js index 21f5267..d7cd3ec 100644 --- a/S3WebApp/S3/modules/signup/signup.js +++ b/S3WebApp/S3/modules/signup/signup.js @@ -37,7 +37,7 @@ angular.module('chatApp.signup', ['chatApp.utils']) }; var dataPhoneNumber = { Name : 'phone_number', - Value : '+1' + $scope.user.phone + Value : '+' + $scope.user.phone }; var dataName = { Name : 'name',