mirror of https://github.com/jumpserver/jumpserver
fix: 手机号码校验逻辑问题
parent
b7badc146a
commit
111296ecd2
|
@ -54,5 +54,5 @@ class PhoneValidator:
|
||||||
except NumberParseException:
|
except NumberParseException:
|
||||||
valid = False
|
valid = False
|
||||||
|
|
||||||
if valid:
|
if not valid:
|
||||||
raise serializers.ValidationError(self.message)
|
raise serializers.ValidationError(self.message)
|
||||||
|
|
Loading…
Reference in New Issue