[GH-ISSUE #572] Avatar px limit blocking gitea login #205

Open
opened 2026-02-27 08:15:52 +03:00 by kerem · 1 comment
Owner

Originally created by @nomandera on GitHub (May 8, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/572

I do not know if this is common, it was certainly new to me, but a user was blocked from login in my otherwise working gitea setup due to the resolution of the avatar.

gitea log

 2023-05-08T12:13:09.148058326Z 2023/05/08 13:13:09 ...vices/auth/signin.go:115:UserSignIn() [W] [6458e753] Failed to login 'myusername' via 'LLDAP': Image width is too large: 5556 > 4096

The avatar was not obviously high resolution and went unnoticed until this issue presented.

I do not know if the spec has some sane resolution limit but obviously we need to enforce one if its not mandated.

Originally created by @nomandera on GitHub (May 8, 2023). Original GitHub issue: https://github.com/lldap/lldap/issues/572 I do not know if this is common, it was certainly new to me, but a user was blocked from login in my otherwise working gitea setup due to the resolution of the avatar. gitea log ``` 2023-05-08T12:13:09.148058326Z 2023/05/08 13:13:09 ...vices/auth/signin.go:115:UserSignIn() [W] [6458e753] Failed to login 'myusername' via 'LLDAP': Image width is too large: 5556 > 4096 ``` The avatar was not obviously high resolution and went unnoticed until this issue presented. I do not know if the spec has some sane resolution limit but obviously we need to enforce one if its not mandated.
Author
Owner

@nitnelave commented on GitHub (May 8, 2023):

Yeah, I guess 4096 is a reasonable limit for an avatar :D

<!-- gh-comment-id:1538297401 --> @nitnelave commented on GitHub (May 8, 2023): Yeah, I guess 4096 is a reasonable limit for an avatar :D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#205
No description provided.