RSS Feed/News DuplicateKeyException not caught during Connected Account registration (username conflict)

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
31,760
Points
823

Reputation:

When a user attempts to register via a connected account at GitHub OAuth, and the chosen username already exists in xf_user, XenForo throws an unhandled XF\Db\DuplicateKeyException (MySQL error 1062) instead of returning a user-friendly validation error.

The registration form accepts the input, passes validation, and only fails at the INSERT stage, resulting in a logged server error visible to admins and a broken experience for the end user.

Steps to...


Read more

Continue reading...
 
Status
Not open for further replies.
Top