Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 13513f6

Browse files
authored
Limit login max phone number length (#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‎

Lines changed: 1 addition & 1 deletion
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)