We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d3c41 commit 9283aeeCopy full SHA for 9283aee
ninja_jwt/schema.py
@@ -47,16 +47,8 @@ def validate_inputs(cls, values: Dict) -> dict:
47
48
if not values.get("password"):
49
raise exceptions.ValidationError({"password": "password is required"})
50
- return values
51
-
52
- @root_validator
53
- def validate_schema(cls, values: Dict) -> dict:
54
- authenticate_kwargs = {
55
- user_name_field: values[user_name_field],
56
- "password": values["password"],
57
- }
58
59
- cls._user = authenticate(**authenticate_kwargs)
+ cls._user = authenticate(**values)
60
61
if not api_settings.USER_AUTHENTICATION_RULE(cls._user):
62
raise exceptions.AuthenticationFailed(
0 commit comments