Block a user
User-Id bei Login mit zurückgeben
User-Id bei Login mit zurückgeben
Erleidgt mit 2f0dd2a
Jetzt kommt etwas ala:
{
"token": "xxxxxxx-xxxx-489b-xxxx-83065d6c3864",
"user_id": 1
}
zurück
auth.py: Make usage of exceptions instead of if-else-blocks
Ja, das ist richtig. Das wirft einen KeyError.
Creating a new token failes if there is an old present
Nutzte:
`curl -vs -D "/dev/stderr"-X POST -H "Content-Type: application/json" -d '{"username": "peter", "password": "geheim"}' http://localhost:5000/users/login
Add yapf to Pipenv environment
Find ich gut. Ich würde auch später mal sehen Git-Hooks mit reinzunehmen.
Eine Frage hätte ich: Wenn
yapf
PEP8 formatiert und flake8 PEP8 validiert, wieso war es vorher schon gültig?…
Add yapf to Pipenv environment
auth.py: Make usage of exceptions instead of if-else-blocks
frlan
created branch auth-with-exceptions in kompetenzinventar/ki-backend
2021-06-21 16:01:37 +02:00
Creating a new taoken failes if there is an old present