Is it possible to extend the special page create user account. I would like to add some new attributes to a new user…
Extend create user account page


You can do that by writing and registering an AuthenticationProvider. The process isn’t well-documented though Here is one example of an extension doing it.

Thanks seems pretty complicated…

Can you tell me where i can add a new text box where a user can add a new information, same as password for example.

Create an AuthenticationRequest with that extra field and a SecondaryAuthenticationProvider which adds that request on account creation and records the value of it. The patch above does that (although it has a bit more functionality and removes a bunch of outdated code too, I don’t think I have a clearer example though).

i really tried to do so, but can you help me a little more there?

So your authentication request to add a single field would look something like CreationReasonAuthenticationRequest (which adds a ‘reason’ field to account creations performed by an admin). See the getFieldInfo() documentation for more details. For a very simple authentication provider that just handles data from a request, WikimediaIncubatorSecondaryAuthenticationProvider is probably the best example.