Hi,

When a user forgets or fails to select a role while registering and the selection of a role is required for registration, an error in the forms category is logged. This is an error, but I think it should now be logged as this kind of error.

At first I was thinking I was getting hacked.

Maybe a notice will be more suitable to log for this kind of error. Also it might help to log the user basic info like username.

Thank you,

Emil Acosta

Comments

cyberswat’s picture

Category: bug » feature

I don't believe this is a bug as the error does get thrown using FAPI unless I'm not understanding you. Please clarify and provide a patch to resolve this issue.

emilorol’s picture

Yeah you are right at the end I realized that it was not a bug on your end, but the way FAPI process form errors.

The only way I thought it might show a better error log information will be to pre-process the form submit function to add a condition that if the new user did not selected any role then to show the user a more informative message as well as log a more user friendly message. Like I said before the first time I saw the red error I thought I was getting hack by brute force or something.