Skip to content

Commit

Permalink
Limit login max phone number length (zhukov#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullaev committed Jun 6, 2020
1 parent 5717dec commit 13513f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
var badPhone = !fullPhone.match(/^[\d\-+\s]+$/)
if (!badPhone) {
fullPhone = fullPhone.replace(/\D/g, '')
if (fullPhone.length < 7) {
if (fullPhone.length < 7 || fullPhone.length > 15) {
badPhone = true
}
}
Expand Down

1 comment on commit 13513f6

@Hamidpayami
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a

Please sign in to comment.