Commit graph

3 commits

Author SHA1 Message Date
Jan Böhmer
ee3ad403fb Fixed exception if no content type or accept header are given 2024-01-26 00:36:14 +01:00
Jan Böhmer
08e7e3f2bf Fixed phpstan issue 2024-01-25 23:41:43 +01:00
Jan Böhmer
f0519ae0b3 Return a 401 message with an JSON encoded body, if no authentication header is passed for an API request.
Also for browser requests, a flash message is shown in that case, prompting the user to authenticate.

This follows a suggestion from issue #494
2024-01-25 23:35:42 +01:00