Skip to content

Commit f792670

Browse files
committed
adding max digit length
1 parent ad6114a commit f792670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fcwebapp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def profile_edit(user: UserInfo):
136136
match k:
137137
case "phone_number":
138138
num = re.sub("\\D", "", v)
139-
if len(num) < 10:
139+
if len(num) < 10 or len(num) > 17:
140140
return redirect('/profile',code=302)
141141
else:
142142
user.phone_number = num

0 commit comments

Comments
 (0)