1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 16:58:28 +00:00

Merge pull request #1971 from hb9cwp/patch-2

REST API example needs additional parameter
This commit is contained in:
Jeremy Grossmann 2021-09-09 23:03:15 -07:00 committed by GitHub
commit 4916567ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ async def authenticate(
) -> schemas.Token: ) -> schemas.Token:
""" """
Alternative authentication method using json. Alternative authentication method using json.
Example: curl http://host:port/v3/users/authenticate -d '{"username": "admin", "password": "admin"}' Example: curl http://host:port/v3/users/authenticate -d '{"username": "admin", "password": "admin"} -H "Content-Type: application/json" '
""" """
user = await users_repo.authenticate_user(username=user_credentials.username, password=user_credentials.password) user = await users_repo.authenticate_user(username=user_credentials.username, password=user_credentials.password)