Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login panel with saved token (regular) #1 priority #2

Open
Jon-Rey opened this issue Apr 2, 2022 · 2 comments
Open

login panel with saved token (regular) #1 priority #2

Jon-Rey opened this issue Apr 2, 2022 · 2 comments
Assignees

Comments

@Jon-Rey
Copy link

Jon-Rey commented Apr 2, 2022

No description provided.

@Jon-Rey Jon-Rey changed the title login panel with saved token login panel with saved token (discord and regular) Apr 2, 2022
@Jon-Rey Jon-Rey changed the title login panel with saved token (discord and regular) login panel with saved token (regular) Apr 2, 2022
@Jon-Rey Jon-Rey changed the title login panel with saved token (regular) login panel with saved token (regular) #1 priority Apr 2, 2022
@Jon-Rey Jon-Rey self-assigned this Apr 2, 2022
@aottr
Copy link
Member

aottr commented Apr 21, 2022

A POST request against /api/auth/ with the credentials as username and password will generate the response

{
  "token": "6a0696e58452c5ea358d16892022b762264efe83"
}

if successfully.

Otherwise: Code 400

{
  "non_field_errors": [
    "Unable to log in with provided credentials."
  ]
}

@aottr
Copy link
Member

aottr commented Apr 21, 2022

username can be the username or active mail address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants