Skip to content

Commit 13513f6

Browse files
authored
Limit login max phone number length (zhukov#1957)
1 parent 5717dec commit 13513f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎app/js/controllers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
177177
var badPhone = !fullPhone.match(/^[\d\-+\s]+$/)
178178
if (!badPhone) {
179179
fullPhone = fullPhone.replace(/\D/g, '')
180-
if (fullPhone.length < 7) {
180+
if (fullPhone.length < 7 || fullPhone.length > 15) {
181181
badPhone = true
182182
}
183183
}

0 commit comments

Comments
 (0)