From 3e034c85d6dcfec329ba76c6a2561ff5fa4a56fb Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sat, 17 Jun 2023 13:57:48 +0100 Subject: [PATCH] auth: provide error message if account is disabled --- auth.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/auth.go b/auth.go index b7eb186..d0fab2d 100644 --- a/auth.go +++ b/auth.go @@ -158,6 +158,11 @@ func (app *appContext) validateJellyfinCredentials(username, password string, gc respond(401, "Unauthorized", gc) return } + if status == 403 { + app.info.Println("Auth denied: Jellyfin account disabled") + respond(403, "yourAccountWasDisabled", gc) + return + } app.err.Printf("Auth failed: Couldn't authenticate with Jellyfin (%d/%s)", status, err) respond(500, "Jellyfin error", gc) return