MCPcopy
hub / github.com/1Panel-dev/MaxKB / is_valid

Method is_valid

apps/users/serializers/user.py:1064–1069  ·  view source on GitHub ↗
(self, *, raise_exception=False)

Source from the content-addressed store, hash-verified

1062 fields = '__all__'
1063
1064 def is_valid(self, *, raise_exception=False):
1065 super().is_valid(raise_exception=True)
1066 if self.data.get('password') != self.data.get('re_password'):
1067 raise AppApiException(ExceptionCodeConstants.PASSWORD_NOT_EQ_RE_PASSWORD.value.code,
1068 ExceptionCodeConstants.PASSWORD_NOT_EQ_RE_PASSWORD.value.message)
1069 return True
1070
1071 def reset_password(self, user_id: str):
1072 """

Callers 1

reset_passwordMethod · 0.95

Calls 3

AppApiExceptionClass · 0.90
is_validMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected