You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I log in to the admin with these credentials everything works fine.
Help?
I have a custom user class that looks like that:
class User(AbstractUser):
objects = UserManager()
REQUIRED_FIELDS = []
USERNAME_FIELD = "email"
username = None
email = models.EmailField("email address", blank=False, null=False, unique=True)
The text was updated successfully, but these errors were encountered:
After requesting:
mutation {
tokenAuth(email: "new_user", password: "supersecretpassword") {
success,
errors,
unarchiving,
token,
refreshToken,
unarchiving,
user {
id,
username,
}
}
}
I'm getting:
{
"data": {
"tokenAuth": {
"success": false,
"errors": {
"nonFieldErrors": [
{
"message": "Please, enter valid credentials.",
"code": "invalid_credentials"
}
]
},
"token": null,
"refreshToken": null,
"user": null
}
}
}
When I log in to the admin with these credentials everything works fine.
Help?
I have a custom user class that looks like that:
class User(AbstractUser):
objects = UserManager()
REQUIRED_FIELDS = []
USERNAME_FIELD = "email"
username = None
email = models.EmailField("email address", blank=False, null=False, unique=True)
The text was updated successfully, but these errors were encountered: