Browse Source

Limit login max phone number length (#1957)

master
Amir Abdullaev 5 years ago committed by GitHub
parent
commit
13513f6a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/js/controllers.js

2
app/js/controllers.js

@ -177,7 +177,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
var badPhone = !fullPhone.match(/^[\d\-+\s]+$/) var badPhone = !fullPhone.match(/^[\d\-+\s]+$/)
if (!badPhone) { if (!badPhone) {
fullPhone = fullPhone.replace(/\D/g, '') fullPhone = fullPhone.replace(/\D/g, '')
if (fullPhone.length < 7) { if (fullPhone.length < 7 || fullPhone.length > 15) {
badPhone = true badPhone = true
} }
} }

Loading…
Cancel
Save