frlan frlan
  • Joined on 2021-03-21
frlan closed issue kompetenzinventar/ki-backend#10 2021-06-21 18:44:15 +02:00
User-Id bei Login mit zurückgeben
frlan commented on issue kompetenzinventar/ki-backend#10 2021-06-21 18:44:07 +02:00
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

frlan deleted branch add-yapf from kompetenzinventar/ki-backend 2021-06-21 18:42:39 +02:00
frlan pushed to main at kompetenzinventar/ki-backend 2021-06-21 18:42:18 +02:00
2f0dd2ab9f users/login: Provider user_id together with token
frlan pushed to add-yapf at kompetenzinventar/ki-backend 2021-06-21 18:41:06 +02:00
a0a63aa215 users/login: Provider user_id together with token
frlan commented on pull request kompetenzinventar/ki-backend#5 2021-06-21 17:32:52 +02:00
auth.py: Make usage of exceptions instead of if-else-blocks

Ja, das ist richtig. Das wirft einen KeyError.

frlan commented on issue kompetenzinventar/ki-backend#4 2021-06-21 17:31:16 +02:00
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

frlan pushed to add-yapf at kompetenzinventar/ki-backend 2021-06-21 17:29:09 +02:00
cbf3002b93 Reformat source code
325e680674 Reformat source code
Compare 2 commits »
frlan commented on pull request kompetenzinventar/ki-backend#6 2021-06-21 17:28:24 +02:00
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?…

frlan commented on pull request kompetenzinventar/ki-backend#6 2021-06-21 17:27:08 +02:00
Add yapf to Pipenv environment

Pass ich an.

frlan pushed to main at kompetenzinventar/ki-backend 2021-06-21 16:12:58 +02:00
59de00527d Ignore *.pyc-files for git
frlan created pull request kompetenzinventar/ki-backend#6 2021-06-21 16:11:35 +02:00
Add yapf to Pipenv environment
frlan pushed to add-yapf at kompetenzinventar/ki-backend 2021-06-21 16:10:13 +02:00
325e680674 Reformat source code
6d4f933585 Add yapf to Pipfile
1390dfa8e6 Add usage of yapf to README
Compare 3 commits »
frlan created branch add-yapf in kompetenzinventar/ki-backend 2021-06-21 16:10:12 +02:00
frlan created pull request kompetenzinventar/ki-backend#5 2021-06-21 16:03:26 +02:00
auth.py: Make usage of exceptions instead of if-else-blocks
frlan pushed to auth-with-exceptions at kompetenzinventar/ki-backend 2021-06-21 16:01:37 +02:00
35cafe1780 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
frlan opened issue kompetenzinventar/ki-backend#4 2021-06-21 15:44:17 +02:00
Creating a new taoken failes if there is an old present