mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
provide error message on login and display it nicely
server now provides a reason for login fail to the web ui, and displays it inside the login button, which looks a lot nicer than the previously used error box.
This commit is contained in:
2
auth.go
2
auth.go
@@ -97,7 +97,7 @@ func (app *appContext) GetToken(gc *gin.Context) {
|
||||
if status != 200 || err != nil {
|
||||
if status == 401 || status == 400 {
|
||||
app.info.Println("Auth failed: Invalid username and/or password")
|
||||
respond(401, "Unauthorized", gc)
|
||||
respond(401, "Invalid username/password", gc)
|
||||
return
|
||||
}
|
||||
app.err.Printf("Auth failed: Couldn't authenticate with Jellyfin: Code %d", status)
|
||||
|
||||
Reference in New Issue
Block a user