mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
auth: provide error message if account is disabled
This commit is contained in:
parent
d3c5feaf1b
commit
3e034c85d6
5
auth.go
5
auth.go
@ -158,6 +158,11 @@ func (app *appContext) validateJellyfinCredentials(username, password string, gc
|
|||||||
respond(401, "Unauthorized", gc)
|
respond(401, "Unauthorized", gc)
|
||||||
return
|
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)
|
app.err.Printf("Auth failed: Couldn't authenticate with Jellyfin (%d/%s)", status, err)
|
||||||
respond(500, "Jellyfin error", gc)
|
respond(500, "Jellyfin error", gc)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user