mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-23 05:27:30 +00:00
fix: 手机号码校验逻辑问题
This commit is contained in:
parent
b7badc146a
commit
111296ecd2
@ -54,5 +54,5 @@ class PhoneValidator:
|
||||
except NumberParseException:
|
||||
valid = False
|
||||
|
||||
if valid:
|
||||
if not valid:
|
||||
raise serializers.ValidationError(self.message)
|
||||
|
Loading…
Reference in New Issue
Block a user